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