19 implementations of IStartupFilter
Microsoft.AspNetCore (2)
ForwardedHeadersStartupFilter.cs (1)
10internal sealed class ForwardedHeadersStartupFilter : IStartupFilter
HostFilteringStartupFilter.cs (1)
9internal sealed class HostFilteringStartupFilter : IStartupFilter
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\NegotiateOptionsValidationStartupFilter.cs (1)
11internal sealed class NegotiateOptionsValidationStartupFilter : IStartupFilter
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Latency\CapturePipelineEntryStartupFilter.cs (1)
13internal sealed class CapturePipelineEntryStartupFilter : IStartupFilter
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostBuilderTests.cs (1)
1557private class MyStartupFilter : IStartupFilter
WebHostTests.cs (1)
771private class TestFilter : IStartupFilter
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisStartupFilter.cs (1)
13public class AnalysisStartupFilter : IStartupFilter
Microsoft.AspNetCore.Mvc.Core (1)
Filters\MiddlewareFilterBuilderStartupFilter.cs (1)
10internal sealed class MiddlewareFilterBuilderStartupFilter : IStartupFilter
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\CultureReplacerStartupFilter.cs (1)
12public class CultureReplacerStartupFilter : IStartupFilter
Microsoft.AspNetCore.Server.IIS (1)
Core\IISServerSetupFilter.cs (1)
11internal sealed class IISServerSetupFilter : IStartupFilter
Microsoft.AspNetCore.Server.IISIntegration (1)
IISSetupFilter.cs (1)
10internal sealed class IISSetupFilter : IStartupFilter
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyStartupFilter.cs (1)
11internal sealed class SpaProxyStartupFilter : IStartupFilter
Microsoft.AspNetCore.TestHost.Tests (3)
TestServerTests.cs (3)
411public class RequestServicesFilter : IStartupFilter 466public class ReplaceServiceProvidersFeatureFilter : IStartupFilter, IServiceProvidersFeature 514public class NullServiceProvidersFeatureFilter : IStartupFilter, IServiceProvidersFeature
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
2902class ThrowingStartupFilter : IStartupFilter 2931class PropertyFilter : IStartupFilter 3140private class TerminalMiddlewareStartupFilter : IStartupFilter 3156class UseRoutingStartupFilter : IStartupFilter
30 references to IStartupFilter
Microsoft.AspNetCore (2)
WebHost.cs (2)
268services.AddTransient<IStartupFilter, HostFilteringStartupFilter>(); 269services.AddTransient<IStartupFilter, ForwardedHeadersStartupFilter>();
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateExtensions.cs (1)
72builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter>(new NegotiateOptionsValidationStartupFilter(authenticationScheme)));
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (1)
73services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, CapturePipelineEntryStartupFilter>());
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostService.cs (3)
27IEnumerable<IStartupFilter> startupFilters, 57public IEnumerable<IStartupFilter> StartupFilters { get; } 135foreach (var filter in Enumerable.Reverse(StartupFilters))
Internal\WebHost.cs (2)
213var startupFilters = _applicationServices.GetService<IEnumerable<IStartupFilter>>(); 217foreach (var filter in Enumerable.Reverse(startupFilters))
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostBuilderTests.cs (2)
1293services.AddSingleton<IStartupFilter, MyStartupFilter>(); 1301var filter = (MyStartupFilter)host.Services.GetServices<IStartupFilter>().FirstOrDefault(s => s is MyStartupFilter);
WebHostTests.cs (2)
755services.AddTransient<IStartupFilter>(serviceProvider => new TestFilter( 759services.AddTransient<IStartupFilter>(serviceProvider => new TestFilter(
Microsoft.AspNetCore.MiddlewareAnalysis (2)
AnalysisServiceCollectionExtensions.cs (1)
27services.TryAddEnumerable(ServiceDescriptor.Transient<IStartupFilter, AnalysisStartupFilter>());
AnalysisStartupFilter.cs (1)
10/// An <see cref="IStartupFilter"/> that configures the middleware pipeline to log to a <see cref="System.Diagnostics.DiagnosticSource"/>
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
273services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, MiddlewareFilterBuilderStartupFilter>());
Microsoft.AspNetCore.Mvc.Core.Test (1)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
313typeof(IStartupFilter),
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\MvcWebApplicationBuilderExtensions.cs (2)
13/// Sets up an <see cref="IStartupFilter"/> that configures the <see cref="CultureReplacerMiddleware"/> at the 34services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, CultureReplacerStartupFilter>());
Microsoft.AspNetCore.Server.IIS (1)
WebHostBuilderIISExtensions.cs (1)
40services.AddSingleton<IStartupFilter, IISServerSetupFilter>();
Microsoft.AspNetCore.Server.IISIntegration (1)
WebHostBuilderIISExtensions.cs (1)
91services.AddSingleton<IStartupFilter>(new IISSetupFilter(pairingToken, new PathString(path), isWebSocketsSupported));
Microsoft.AspNetCore.Server.IISIntegration.Tests (1)
IISExtensionTests.cs (1)
39var filters = server.Services.GetServices<IStartupFilter>()
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
29services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, SpaProxyStartupFilter>());
Microsoft.AspNetCore.TestHost.Tests (3)
TestServerTests.cs (3)
436services.AddTransient<IStartupFilter, RequestServicesFilter>(); 506services.AddSingleton<IStartupFilter>(new ReplaceServiceProvidersFeatureFilter(appServices, appServices)); 547services.AddTransient<IStartupFilter, NullServiceProvidersFeatureFilter>();
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
1666builder.Services.AddSingleton<IStartupFilter, TerminalMiddlewareStartupFilter>(); 1688builder.Services.AddSingleton<IStartupFilter, UseRoutingStartupFilter>(); 2015builder.Services.AddSingleton<IStartupFilter, PropertyFilter>(); 2051builder.Services.AddSingleton<IStartupFilter, ThrowingStartupFilter>();