Removed default memory cache provider
This commit is contained in:
@@ -29,8 +29,10 @@ public static class HopFrameAuthenticationExtensions {
|
|||||||
service.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
service.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||||
service.AddScoped<ITokenContext, TokenContextImplementor>();
|
service.AddScoped<ITokenContext, TokenContextImplementor>();
|
||||||
|
|
||||||
service.AddHttpClient();
|
if (config.CacheProvider == typeof(MemoryCacheProvider))
|
||||||
service.AddMemoryCache();
|
service.AddMemoryCache();
|
||||||
|
|
||||||
|
service.AddHttpClient<OpenIdAccessor>();
|
||||||
service.AddScoped<IOpenIdAccessor, OpenIdAccessor>();
|
service.AddScoped<IOpenIdAccessor, OpenIdAccessor>();
|
||||||
|
|
||||||
service.AddOptionsFromConfiguration<HopFrameAuthenticationOptions>(configuration);
|
service.AddOptionsFromConfiguration<HopFrameAuthenticationOptions>(configuration);
|
||||||
|
|||||||
Reference in New Issue
Block a user