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); }
public VostokMiddlewaresBuilder(IVostokHostingEnvironment environment, List <IDisposable> disposables, VostokThrottlingBuilder throttlingBuilder) { this.environment = environment; this.disposables = disposables; this.throttlingBuilder = throttlingBuilder; }
public VostokMiddlewaresBuilder(VostokThrottlingBuilder throttlingBuilder) => this.throttlingBuilder = throttlingBuilder;