Skip to content

Commit 2aae3de

Browse files
committed
Fixed registration of 'IPostConfigureOptions'.
1 parent bb06702 commit 2aae3de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Http/src/AppCoreNet.Extensions.Http.Authentication/DependencyInjection/HttpClientAuthenticationBuilderExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ public static IHttpClientAuthenticationBuilder AddScheme<TOptions, TParameters,
5757
services.TryAddEnumerable(
5858
new[]
5959
{
60-
ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>>(
61-
sp => new PostConfigureAuthenticationSchemeOptions<TOptions>(
62-
sp.GetRequiredService<TimeProvider>())),
60+
ServiceDescriptor
61+
.Singleton<IPostConfigureOptions<TOptions>, PostConfigureAuthenticationSchemeOptions<TOptions>>(
62+
sp => new PostConfigureAuthenticationSchemeOptions<TOptions>(
63+
sp.GetRequiredService<TimeProvider>())),
6364
});
6465

6566
return builder;

0 commit comments

Comments
 (0)