skip to Main Content

Configure all options derived from base option class or interface .NET Core – Asp.net

I have code with variables in appsettings.json file so I register all options in IServiceCollection via configure method: public static void Configure(IServiceCollection services, IConfiguration configuration, bool useHangfire = true) { services .Configure<AuthSettings>(configuration.GetSection(AuthSettings.SectionName)) .Configure<CacheSettings>(configuration.GetSection(CacheSettings.SectionName)) ..... and so on I would like…

VIEW QUESTION
Back To Top
Search