Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed binding of MailgunSender to singleton scope #1

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

brnn8r
Copy link
Owner

@brnn8r brnn8r commented Feb 23, 2024

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 brnn8r merged commit 142e1d8 into master Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant