コード例 #1
0
        public void Configure(IApplicationBuilder app, IConfiguration configuration, IWebHostEnvironment hostEnvironment)
        {
            var context = new ConfigureServicesContext(configuration, hostEnvironment, _options);

            foreach (var cfg in _options.StartupModules)
            {
                cfg.Configure(app, context);
            }
        }
コード例 #2
0
        public void ConfigureServices(IServiceCollection services, IConfiguration configuration, IWebHostEnvironment hostEnvironment)
        {
            var context = new ConfigureServicesContext(configuration, hostEnvironment, _options);

            foreach (var cfg in _options.StartupModules)
            {
                cfg.ConfigureServices(services, context);
            }
        }