FluentEmail icon indicating copy to clipboard operation
FluentEmail copied to clipboard

Bind MailgunSender to ISender in singleton scope.

Open brnn8r opened this issue 1 year ago • 0 comments

Bind MailgunSender to ISender in singleton scope.

MailgunSender creates a new HttpClient for each instance of a MailgunSender object.

Based on Microsoft recommendations https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/http/httpclient-guidelines#recommended-use I propose the MailgunSender should be bound in Singleton scope so that only one HttpClient is instantiated.

brnn8r avatar Feb 23 '24 22:02 brnn8r