예제 #1
0
        public static WebApplicationBuilder New()
        {
            var webApplicationBuilder = new WebApplicationBuilder();

            return(webApplicationBuilder);
        }
        public static IWebHostBuilder UseStartupWithDerbyConfigurationStartup <TStartup>(this WebApplicationBuilder webApplicationBuilder)
            where TStartup : class, IWebApplicationStartup
        {
            var webHostBuilder = webApplicationBuilder.UseStartup <TStartup, ApplicationConfigurationStartup>(webApplicationBuilder.GetApplicationConfigurationConfigurationServiceProvider);

            return(webHostBuilder);
        }
        public static IWebHostBuilder UseStartupFromCoventryWithDerbyConfigurationStartup <TStartup>(this WebApplicationBuilder webApplicationBuilder)
            where TStartup : class, IWebApplicationStartup
        {
            var webHostBuilder = webApplicationBuilder.UseStartupWithDerbyConfigurationStartup <TStartup>();

            return(webHostBuilder);
        }
        public static IServiceProvider GetApplicationConfigurationConfigurationServiceProvider(this WebApplicationBuilder webApplicationBuilder)
        {
            var applicationBuilder = new ApplicationBuilder();

            var applicationConfigurationConfigurationServiceProvider = applicationBuilder.UseStartup <ApplicationConfigurationConfigurationStartup>();

            return(applicationConfigurationConfigurationServiceProvider);
        }