예제 #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);
     });
 }