Skip to content

Commit

Permalink
add IHttpClientFactory registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
artyomszasa committed Feb 3, 2023
1 parent 8ccaa65 commit 782b3f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>
<Version>7.0.0-alpha00</Version>
<ProtoVersion>6.0.0-rc07</ProtoVersion>
<ProtoVersion>6.0.0-rc08</ProtoVersion>
<Fx3Version>3.1.16</Fx3Version>
<Fx6Version>6.0.0</Fx6Version>
<Fx7Version>7.0.0</Fx7Version>
Expand Down
1 change: 1 addition & 0 deletions NCoreUtils.AspNetCore.EmailSender/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void ConfigureServices(IServiceCollection services)
{
var publisherTask = PublisherClient.CreateAsync(new TopicName(_configuration["Google:ProjectId"], _configuration["Google:TopicId"]));
services
.AddHttpClient()
.AddHttpContextAccessor()
.AddSingleton(_ => publisherTask.Result)
.AddSingleton<IEmailSender, EmailScheduler>()
Expand Down

0 comments on commit 782b3f0

Please sign in to comment.