public static void UseAspNetServices(IApplicationBuilder app, AspNetServicesOptions config) { if (config.Cors != null) { app.UseCors(); } if (config.ForwardedHeadersOptions != null) { app.UseForwardedHeaders(config.ForwardedHeadersOptions); } }
public static void ConfigureAspNetServices(IServiceCollection services, AspNetServicesOptions config) { if (config.Authentication != null) { ConfigureAuthenticationOptions(services, config.Authentication); } if (config.Session != null) { ConfigureSessionOptions(services, config.Session); } }