예제 #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            AuthenticationRegistrator.RegisterAuthentication(services);
            SettingsRegistrator.RegisterSettings(services, Configuration);
            ServicesRegistrator.RegisterServices(services);

            services.AddControllersWithViews();
        }
예제 #2
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            CookiesConfigurator.ConfigureCookies(services);
            AuthenticationRegistrator.RegisterAuthentication(services);
            ServicesRegistrator.RegisterServices(services);

            services.AddMvcCore().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
        }