private static void ConfigureCors(IServiceCollection services, AspNetCorsOptions corsConfig) { services.AddCors(options => { MergeHelper.Merge(corsConfig, options); } ); }
private static void ConfigureSessionOptions(IServiceCollection services, SessionOptions config) { services.AddSession(options => { MergeHelper.Merge(config, options); }); }
private static void ConfigureAuthenticationOptionsForScheme(AuthenticationBuilder builder, AuthenticationOptions schemaConfig) { builder.AddCookie(options => { MergeHelper.Merge(schemaConfig.CookieAuthenticationOptions, options); }); }