public VostokWebHostBuilder(
            IVostokHostingEnvironment environment,
            VostokKestrelBuilder kestrelBuilder,
            VostokMiddlewaresBuilder middlewaresBuilder)
        {
            this.environment        = environment;
            this.kestrelBuilder     = kestrelBuilder;
            this.middlewaresBuilder = middlewaresBuilder;

            webHostEnabled       = true;
            webHostCustomization = new Customization <IWebHostBuilder>();
        }
        public VostokAspNetCoreApplicationBuilder(IVostokHostingEnvironment environment, IVostokApplication application, List <IDisposable> disposables)
        {
            this.environment = environment;

            hostFactory = new HostFactory(environment, application);
            hostFactory.SetupLogger(s => { s.IgnoredScopePrefixes = new[] { "Microsoft" }; });

            kestrelBuilder     = new VostokKestrelBuilder();
            throttlingBuilder  = new VostokThrottlingBuilder(environment, disposables);
            middlewaresBuilder = new VostokMiddlewaresBuilder(environment, disposables, throttlingBuilder);
            webHostBuilder     = new VostokWebHostBuilder <TStartup>(environment, kestrelBuilder, middlewaresBuilder, disposables);
        }
        public VostokAspNetCoreApplicationBuilder(IVostokHostingEnvironment environment, List <IDisposable> disposables)
        {
            this.environment = environment;

            hostFactory = new HostFactory(environment);
            hostFactory.SetupLogger(
                s => s.IgnoredScopes = new HashSet <string>
            {
                MicrosoftConstants.ActionLogScope,
                MicrosoftConstants.ActionLogScopeOld,
                MicrosoftConstants.HostingLogScope,
                MicrosoftConstants.HostingLogScopeOld,
                MicrosoftConstants.ConnectionLogScope
            });

            kestrelBuilder     = new VostokKestrelBuilder();
            throttlingBuilder  = new VostokThrottlingBuilder(environment, disposables);
            middlewaresBuilder = new VostokMiddlewaresBuilder(throttlingBuilder);
            webHostBuilder     = new VostokWebHostBuilder <TStartup>(environment, kestrelBuilder, middlewaresBuilder);
        }