Пример #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            ServiceConfigurator.ConfigureServices(services, Configuration);

            services
            .AddMvc()
            .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
        }
Пример #2
0
 public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
 {
     ServiceConfigurator.ConfigureServices(services, configuration);
 }
Пример #3
0
        public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
        {
            ServiceConfigurator.ConfigureServices(services, configuration);

            services.AddScoped(_ => dbContext);
        }