-
Notifications
You must be signed in to change notification settings - Fork 586
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
feat: Integrate SendGrid with HttpClientFactory #922
feat: Integrate SendGrid with HttpClientFactory #922
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM apart from some very minor things. This is definitely the way to go if we want to retrofit ASP.NET Core DI support without burdening the users who don't want to use it with all of its dependencies.
tests/SendGrid.Extensions.DependencyInjection.Tests/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
src/SendGrid.Extensions.DependencyInjection/InjectableSendGridClient.cs
Outdated
Show resolved
Hide resolved
LGTM 👍 |
Hi @thinkingserious, After some investigations on Travis CI, this PR include some building optimizations. the building/testing time is reduced from 10 minutes to 3 minutes now. |
Hello @aevitas @thinkingserious, Please let me know if you have any suggestions. |
@akunzai Great job on the optimizations and upgrading the projects from netcore 1.0. I don't think anyone can be assumed to be using those runtimes at this point anymore. I've just left some very minor comments on the readme concerning accessors. I think it would make sense to keep the code uniform in terms of accessors, but it's up to you. |
Sooo... is this likely to get merged anytime soon, since everyone appears to be happy with it? |
@IanKemp Depends on when @thinkingserious gets around to it. |
src/SendGrid.Extensions.DependencyInjection/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/SendGrid.Extensions.DependencyInjection/InjectableSendGridClient.cs
Outdated
Show resolved
Hide resolved
latest commit fixes:
|
Any updates on this? Seems like a valuable PR that will prevent me from rewriting much of the DI myself. |
Hi @thinkingserious, Conflicts solved for #969. Automated deploy of the Please let me know if you prefer automated deploy the |
@thinkingserious Any progress on this? We would like to use it in our app, since we are using SendGrid with an Asp.Net Core web app. Or is there a different solution in the works to use HttpClientFactory? |
Will this be merged at some point ? |
@thinkingserious Any updates on this PR? |
Hi @thinkingserious, some conflicts was solved, And the latest commit will automated deploy the Are you prefer |
Someone ship this man a medal after this gets merged. |
- Introduce new SendGrid.Extensions.DependencyInjection package for HttpClientFactory integrations
- Update NuGet packages - Cleanup Properties
- `Program.cs` is the convention of C# console application entry point
- Upgrade to SDK style csproj - Code cleanup
- Add `SendGrid.Extensions.DependencyInjection` usage - Fixes typo - Fixes Markdown syntax warnings - Simplify examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🏅
Thank you for this, we will put it to use right away. Just wondering when the nuget for SendGrid.Extensions.DependencyInjection will be published. Thank you, again. |
Next release is scheduled for 2020-06-10 |
Shouldn't the |
@arielmoraes The SendGridClientOptions seems no need to change frequently, and also this PR was merged. (your should join to review this PR earlier) If it happens in your scenario, another PR is welcome! |
Fixes #880
Checklist
Short description of what this PR does:
SendGrid.Extensions.DependencyInjection
package for HttpClientFactory integrations