Ejemplo n.º 1
0
        public static void UseAspNetServices(IApplicationBuilder app, AspNetServicesOptions config)
        {
            if (config.Cors != null)
            {
                app.UseCors();
            }

            if (config.ForwardedHeadersOptions != null)
            {
                app.UseForwardedHeaders(config.ForwardedHeadersOptions);
            }
        }
Ejemplo n.º 2
0
        public static void ConfigureAspNetServices(IServiceCollection services, AspNetServicesOptions config)
        {
            if (config.Authentication != null)
            {
                ConfigureAuthenticationOptions(services, config.Authentication);
            }

            if (config.Session != null)
            {
                ConfigureSessionOptions(services, config.Session);
            }
        }