public static IServiceProvider UseStartup <TStartup, TConfigurationStartup, TConfigurationConfigurationStartup>(this ServiceProviderBuilder serviceProviderBuilder)
            where TStartup : class, IStartup
            where TConfigurationStartup : class, IConfigurationStartup
            where TConfigurationConfigurationStartup : class, IConfigurationStartup
        {
            var configurationConfigurationServiceProvider = serviceProviderBuilder.UseStartup <TConfigurationConfigurationStartup>(ServiceProviderHelper.GetNewEmptyServiceProvider);

            var serviceProvider = serviceProviderBuilder.UseStartup <TStartup, TConfigurationStartup>(configurationConfigurationServiceProvider);

            return(serviceProvider);
        }
Example #2
0
        public static ServiceProviderBuilder New()
        {
            var applicationBuilder = new ServiceProviderBuilder();

            return(applicationBuilder);
        }