5 implementations of IApplicationBuilder
Microsoft.AspNetCore (1)
WebApplication.cs (1)
25public sealed class WebApplication : IHost, IApplicationBuilder, IEndpointRouteBuilder, IAsyncDisposable
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
16public partial class ApplicationBuilder : IApplicationBuilder
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
MapPathMiddlewareTests.cs (1)
246private class MockWebApplication : IApplicationBuilder, IEndpointRouteBuilder
UsePathBaseExtensionsTests.cs (1)
30private class ApplicationBuilderWrapper : IApplicationBuilder
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisBuilder.cs (1)
14public class AnalysisBuilder : IApplicationBuilder
949 references to IApplicationBuilder
ApiExplorerWebSite (1)
Startup.cs (1)
37public void Configure(IApplicationBuilder app)
ApplicationModelWebSite (1)
Startup.cs (1)
23public void Configure(IApplicationBuilder app)
AutobahnTestApp (1)
Startup.cs (1)
11public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
8public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
AzureAppServicesSample (1)
Startup.cs (1)
19public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory)
BasicLinkedApp (1)
Startup.cs (1)
13public void Configure(IApplicationBuilder app)
BasicWebSite (11)
LocalizationPipeline.cs (1)
12public void Configure(IApplicationBuilder applicationBuilder)
Startup.cs (1)
26public void Configure(IApplicationBuilder app)
StartupRequestLimitSize.cs (1)
17public void Configure(IApplicationBuilder app)
StartupWhereReadingRequestBodyThrows.cs (1)
16public void Configure(IApplicationBuilder app)
StartupWithCookieTempDataProviderAndCookieConsent.cs (1)
21public void Configure(IApplicationBuilder app)
StartupWithCustomInvalidModelStateFactory.cs (1)
39public void Configure(IApplicationBuilder app)
StartupWithCustomValueProvider.cs (1)
19public void Configure(IApplicationBuilder app)
StartupWithNewtonsoftJson.cs (1)
15public void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
71public void Configure(IApplicationBuilder app)
StartupWithSessionTempDataProvider.cs (1)
19public void Configure(IApplicationBuilder app)
StartupWithSystemTextJson.cs (1)
16public void Configure(IApplicationBuilder app)
Benchmarks (2)
StartupUsingEndpointRouting.cs (1)
18public void Configure(IApplicationBuilder app)
StartupUsingRouter.cs (1)
17public void Configure(IApplicationBuilder app)
Binding.UDS.IntegrationTests (1)
.packages\corewcf.primitives\1.6.0\contentFiles\CoreWCFWebApplicationExtensions.cs (1)
21((Microsoft.AspNetCore.Builder.IApplicationBuilder)app).UseServiceModel(configureServices);
blazor-devserver (2)
Server\Startup.cs (2)
26public static void Configure(IApplicationBuilder app, IConfiguration configuration) 82private static void EnableConfiguredPathbase(IApplicationBuilder app, IConfiguration configuration)
BlazorServerApp (1)
Startup.cs (1)
27public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Certificate.Optional.Sample (1)
Startup.cs (1)
38public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Certificate.Sample (1)
Startup.cs (1)
41public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
ClaimsTransformation (1)
Startup.cs (1)
41public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
ConcurrencyLimiterSample (1)
Startup.cs (1)
17public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
ControllersFromServicesWebSite (1)
Startup.cs (1)
53public void Configure(IApplicationBuilder app)
CookiePolicySample (2)
Startup.cs (2)
25public void Configure(IApplicationBuilder app) 35private void NestedApp(IApplicationBuilder app)
Cookies (1)
Startup.cs (1)
48public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
CookieSessionSample (1)
Startup.cs (1)
26public void Configure(IApplicationBuilder app)
CorsMiddlewareWebSite (1)
Startup.cs (1)
13public void Configure(IApplicationBuilder app)
CorsWebSite (2)
Startup.cs (1)
71public virtual void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
10public override void Configure(IApplicationBuilder app)
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
54public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
CustomPolicyProvider (1)
Startup.cs (1)
37public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
DatabaseErrorPageSample (1)
Startup.cs (1)
16public void Configure(IApplicationBuilder app)
DefaultBuilder.SampleApp (1)
Startup.cs (1)
15public void Configure(IApplicationBuilder app, IConfiguration config)
DeveloperExceptionPageSample (1)
Startup.cs (1)
15public void Configure(IApplicationBuilder app)
DynamicSchemes (1)
Startup.cs (1)
35public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
15public void Configure(IApplicationBuilder app)
ExceptionHandlerSample (3)
Startup.cs (1)
11public void Configure(IApplicationBuilder app)
StartupWithProblemDetails.cs (1)
17public void Configure(IApplicationBuilder app)
StartupWithWebSocket.cs (1)
20public void Configure(IApplicationBuilder app)
FilesWebSite (1)
Startup.cs (1)
15public void Configure(IApplicationBuilder app)
FormatterWebSite (4)
Startup.cs (1)
23public void Configure(IApplicationBuilder app)
StartupWithComplexParentValidation.cs (1)
15public void Configure(IApplicationBuilder app)
StartupWithJsonInputFormatter.cs (1)
20public void Configure(IApplicationBuilder app)
StartupWithRespectBrowserAcceptHeader.cs (1)
17public void Configure(IApplicationBuilder app)
GenericHostWebSite (1)
Startup.cs (1)
29public void Configure(IApplicationBuilder app)
HeaderPropagationSample (1)
Startup.cs (1)
50public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHttpClientFactory clientFactory)
HealthChecksSample (6)
BasicStartup.cs (1)
15public void Configure(IApplicationBuilder app)
CustomWriterStartup.cs (1)
23public void Configure(IApplicationBuilder app)
DbContextHealthStartup.cs (1)
36public void Configure(IApplicationBuilder app)
DBHealthStartup.cs (1)
24public void Configure(IApplicationBuilder app)
LivenessProbeStartup.cs (1)
19public void Configure(IApplicationBuilder app)
ManagementPortStartup.cs (1)
22public void Configure(IApplicationBuilder app)
HostedBlazorWebassemblyApp.Server (1)
Startup.cs (1)
37public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
HostFilteringSample (1)
Startup.cs (1)
40public void Configure(IApplicationBuilder app)
HotAddSample (1)
Startup.cs (1)
31public void Configure(IApplicationBuilder app)
HtmlGenerationWebSite (3)
Startup.cs (1)
25public virtual void Configure(IApplicationBuilder app)
StartupWithCultureReplace.cs (1)
19public void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
10public override void Configure(IApplicationBuilder app)
Http2SampleApp (3)
Startup.cs (1)
18public void Configure(IApplicationBuilder app)
TimingMiddleware.cs (2)
48public static IApplicationBuilder UseTimingMiddleware(this IApplicationBuilder builder)
Http3SampleApp (1)
Startup.cs (1)
18public void Configure(IApplicationBuilder app)
HttpLogging.Sample (1)
Startup.cs (1)
22public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
HttpOverridesSample (1)
Startup.cs (1)
11public void Configure(IApplicationBuilder app)
HttpsPolicySample (1)
Startup.cs (1)
28public void Configure(IApplicationBuilder app, IWebHostEnvironment environment)
Identity.DefaultUI.WebSite (3)
NoIdentityStartup.cs (1)
39public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
StartupBase.cs (1)
53public virtual void Configure(IApplicationBuilder app, IWebHostEnvironment env)
StartupWithoutEndpointRouting.cs (1)
23public override void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Identity.ExternalClaims (1)
Startup.cs (1)
76public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
IdentitySample.DefaultUI (1)
Startup.cs (1)
53public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
IdentitySample.Mvc (1)
Startup.cs (1)
58public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
IIS.Tests (3)
Utilities\TestServer.cs (3)
45private readonly Action<IApplicationBuilder> _appBuilder; 61private TestServer(Action<IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory, bool isHttps) 70public static async Task<TestServer> Create(Action<IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory, IISServerOptions options, bool isHttps = false)
IISSample (1)
Startup.cs (1)
33public void Configure(IApplicationBuilder app, ILoggerFactory loggerfactory, IAuthenticationSchemeProvider authSchemeProvider)
InMemory.FunctionalTests (1)
TestTransport\TestServer.cs (1)
130void IStartup.Configure(IApplicationBuilder app)
InProcessWebSite (12)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
37public void Configure(IApplicationBuilder app, IHttpContextAccessor httpContextAccessor) 204public void CompressedData(IApplicationBuilder builder)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (6)
25private void WebSocketNotUpgradable(IApplicationBuilder app) 35private void WebSocketUpgradable(IApplicationBuilder app) 45private void WebSocketReadBeforeUpgrade(IApplicationBuilder app) 59private void WebSocketEcho(IApplicationBuilder app) 74private void WebSocketLifetimeEvents(IApplicationBuilder app) 96private void WebSocketUpgradeFails(IApplicationBuilder app)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\ThrowingStartup.cs (1)
12public void Configure(IApplicationBuilder app)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (3)
15public static void Register(IApplicationBuilder app, object startup) 28if (parameters[0].ParameterType == typeof(IApplicationBuilder)) 30var innerAppBuilder = app.New();
IntegrationTestsWebsite (1)
Startup.cs (1)
29public void Configure(IApplicationBuilder app)
Interop.FunctionalTests (1)
H2SpecTests.cs (1)
147private void ConfigureHelloWorld(IApplicationBuilder app)
InteropWebsite (1)
Startup.cs (1)
35public void Configure(IApplicationBuilder app, IHostApplicationLifetime applicationLifetime)
IStartupInjectionAssemblyName (1)
Startup.cs (1)
12public void Configure(IApplicationBuilder app)
JwtBearerSample (1)
Startup.cs (1)
38public void Configure(IApplicationBuilder app)
JwtSample (1)
Startup.cs (1)
60public void Configure(IApplicationBuilder app)
Kestrel.SampleApp (3)
ClientCertBufferingFeature.cs (2)
20public static IApplicationBuilder UseClientCertBuffering(this IApplicationBuilder builder)
Startup.cs (1)
27public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
LargeResponseApp (1)
Startup.cs (1)
21public void Configure(IApplicationBuilder app)
LocalizationSample (1)
Startup.cs (1)
17public void Configure(IApplicationBuilder app, IStringLocalizer<Startup> SR)
LocalizationWebsite (7)
StartupBuilderAPIs.cs (1)
18IApplicationBuilder app,
StartupContentLanguageHeader.cs (1)
18IApplicationBuilder app)
StartupCustomCulturePreserved.cs (1)
17IApplicationBuilder app)
StartupGetAllStrings.cs (1)
19IApplicationBuilder app,
StartupResourcesAtRootFolder.cs (1)
20IApplicationBuilder app,
StartupResourcesInClassLibrary.cs (1)
19IApplicationBuilder app,
StartupResourcesInFolder.cs (1)
20IApplicationBuilder app,
Logging.W3C.Sample (1)
Startup.cs (1)
25public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Microsoft.AspNetCore (27)
ConfigureWebHostBuilder.cs (2)
166IWebHostBuilder ISupportsStartup.Configure(Action<IApplicationBuilder> configure) 171IWebHostBuilder ISupportsStartup.Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
ForwardedHeadersStartupFilter.cs (2)
19public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
HostFilteringStartupFilter.cs (2)
11public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
WebApplication.cs (11)
71IServiceProvider IApplicationBuilder.ApplicationServices 78IFeatureCollection IApplicationBuilder.ServerFeatures => ServerFeatures; 81IDictionary<string, object?> IApplicationBuilder.Properties => Properties; 208RequestDelegate IApplicationBuilder.Build() => BuildRequestDelegate(); 211IApplicationBuilder IApplicationBuilder.New() 213var newBuilder = ApplicationBuilder.New(); 223/// <returns>An instance of <see cref="IApplicationBuilder"/> after the operation has completed.</returns> 224public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware) 230IApplicationBuilder IEndpointRouteBuilder.CreateApplicationBuilder() => ((IApplicationBuilder)this).New();
WebApplicationBuilder.cs (5)
386private void ConfigureApplication(WebHostBuilderContext context, IApplicationBuilder app) => 389private void ConfigureApplication(WebHostBuilderContext context, IApplicationBuilder app, bool allowDeveloperExceptionPage) 485private void MergeMiddlewareDescriptions(IApplicationBuilder app) 515private sealed class WireSourcePipeline(IApplicationBuilder builtApplication) 517private readonly IApplicationBuilder _builtApplication = builtApplication;
WebHost.cs (5)
74/// <param name="app">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 76public static IWebHost StartWith(Action<IApplicationBuilder> app) => 84/// <param name="app">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 86public static IWebHost StartWith([StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<IApplicationBuilder> app) => 89private static IWebHost StartWith(string? url, Action<IServiceCollection>? configureServices, Action<IApplicationBuilder> app, string? applicationName)
Microsoft.AspNetCore.Antiforgery (5)
AntiforgeryApplicationBuilderExtensions.cs (5)
10/// Anti-forgery extension methods for <see cref="IApplicationBuilder"/>. 19/// <param name="builder">The <see cref="IApplicationBuilder"/>.</param> 21public static IApplicationBuilder UseAntiforgery(this IApplicationBuilder builder) 32private static void VerifyAntiforgeryServicesAreRegistered(this IApplicationBuilder builder)
Microsoft.AspNetCore.Authentication (4)
AuthAppBuilderExtensions.cs (4)
16/// Adds the <see cref="AuthenticationMiddleware"/> to the specified <see cref="IApplicationBuilder"/>, which enables authentication capabilities. 18/// <param name="app">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 20public static IApplicationBuilder UseAuthentication(this IApplicationBuilder app)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\NegotiateOptionsValidationStartupFilter.cs (2)
20public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Authentication.Test (3)
FacebookTests.cs (1)
455private static async Task<IHost> CreateHost(Action<IApplicationBuilder> configure, Action<IServiceCollection> configureServices, Func<HttpContext, Task<bool>> handler)
WsFederation\WsFederationTest.cs (1)
365private void ConfigureApp(IApplicationBuilder app)
WsFederation\WsFederationTest_Handler.cs (1)
361private void ConfigureApp(IApplicationBuilder app)
Microsoft.AspNetCore.Authorization.Policy (5)
AuthorizationAppBuilderExtensions.cs (5)
18/// Adds the <see cref="AuthorizationMiddleware"/> to the specified <see cref="IApplicationBuilder"/>, which enables authorization capabilities. 24/// <param name="app">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 26public static IApplicationBuilder UseAuthorization(this IApplicationBuilder app) 36private static void VerifyServicesRegistered(IApplicationBuilder app)
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\RazorComponentEndpointDataSource.cs (1)
140var builder = _endpointRouteBuilder.CreateApplicationBuilder();
Builder\RenderModeEndpointProvider.cs (2)
28/// <param name="applicationBuilder">The <see cref="IApplicationBuilder"/> used to configure non endpoint aware endpoints.</param> 32IApplicationBuilder applicationBuilder);
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
282public IApplicationBuilder CreateApplicationBuilder()
HotReloadServiceTests.cs (2)
263public override IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder) 302public IApplicationBuilder CreateApplicationBuilder() => new ApplicationBuilder(_serviceProvider);
RazorComponentEndpointDataSourceTest.cs (3)
266public override IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder) 279public override IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder) 318public IApplicationBuilder CreateApplicationBuilder() => new ApplicationBuilder(_serviceProvider);
Microsoft.AspNetCore.Components.Server (5)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (5)
59IApplicationBuilder applicationBuilder) 90var builder = endpointRouteBuilder.CreateApplicationBuilder(); 124private readonly IApplicationBuilder _applicationBuilder; 126public EndpointRouteBuilder(IServiceProvider serviceProvider, IApplicationBuilder applicationBuilder) 136public IApplicationBuilder CreateApplicationBuilder()
Microsoft.AspNetCore.Components.Server.Tests (5)
ComponentEndpointRouteBuilderExtensionsTest.cs (5)
22var applicationBuilder = CreateAppBuilder(); 41var applicationBuilder = CreateAppBuilder(); 60var applicationBuilder = CreateAppBuilder(); 99var applicationBuilder = CreateAppBuilder(); 125private IApplicationBuilder CreateAppBuilder()
Microsoft.AspNetCore.Components.WebAssembly.Server (12)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (8)
31/// <param name="builder">The <see cref="IApplicationBuilder"/>.</param> 33/// <returns>The <see cref="IApplicationBuilder"/></returns> 34public static IApplicationBuilder UseBlazorFrameworkFiles(this IApplicationBuilder builder, PathString pathPrefix) 79/// <param name="applicationBuilder">The <see cref="IApplicationBuilder"/>.</param> 80/// <returns>The <see cref="IApplicationBuilder"/></returns> 81public static IApplicationBuilder UseBlazorFrameworkFiles(this IApplicationBuilder applicationBuilder) =>
WebAssemblyEndpointProvider.cs (3)
17public override IEnumerable<RouteEndpointBuilder> GetEndpointBuilders(IComponentRenderMode renderMode, IApplicationBuilder applicationBuilder) 53private class WebAssemblyEndpointRouteBuilder(IServiceProvider serviceProvider, IApplicationBuilder applicationBuilder) : IEndpointRouteBuilder 59public IApplicationBuilder CreateApplicationBuilder()
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
19public static void UseWebAssemblyDebugging(this IApplicationBuilder app)
Microsoft.AspNetCore.ConcurrencyLimiter (4)
ConcurrencyLimiterExtensions.cs (4)
16/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 17/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 19public static IApplicationBuilder UseConcurrencyLimiter(this IApplicationBuilder app)
Microsoft.AspNetCore.CookiePolicy (8)
CookiePolicyAppBuilderExtensions.cs (8)
15/// Adds the <see cref="CookiePolicyMiddleware"/> handler to the specified <see cref="IApplicationBuilder"/>, which enables cookie policy capabilities. 17/// <param name="app">The <see cref="IApplicationBuilder"/> to add the handler to.</param> 19public static IApplicationBuilder UseCookiePolicy(this IApplicationBuilder app) 27/// Adds the <see cref="CookiePolicyMiddleware"/> handler to the specified <see cref="IApplicationBuilder"/>, which enables cookie policy capabilities. 29/// <param name="app">The <see cref="IApplicationBuilder"/> to add the handler to.</param> 32public static IApplicationBuilder UseCookiePolicy(this IApplicationBuilder app, CookiePolicyOptions options)
Microsoft.AspNetCore.Cors (7)
Infrastructure\CorsMiddlewareExtensions.cs (7)
9/// The <see cref="IApplicationBuilder"/> extensions for adding CORS middleware support. 18public static IApplicationBuilder UseCors(this IApplicationBuilder app) 31public static IApplicationBuilder UseCors(this IApplicationBuilder app, string policyName) 44public static IApplicationBuilder UseCors( 45this IApplicationBuilder app,
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
102public void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.Diagnostics (50)
DeveloperExceptionPage\DeveloperExceptionPageExtensions.cs (7)
10/// <see cref="IApplicationBuilder"/> extension methods for the <see cref="DeveloperExceptionPageMiddleware"/>. 17/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 22public static IApplicationBuilder UseDeveloperExceptionPage(this IApplicationBuilder app) 33/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 39public static IApplicationBuilder UseDeveloperExceptionPage( 40this IApplicationBuilder app,
ExceptionHandler\ExceptionHandlerExtensions.cs (15)
26public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app) 40public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, string errorHandlingPath) 54/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 58public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, string errorHandlingPath, bool createScopeForErrors) 76public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, Action<IApplicationBuilder> configure) 81var subAppBuilder = app.New(); 98public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, ExceptionHandlerOptions options) 107private static IApplicationBuilder SetExceptionHandlerMiddleware(IApplicationBuilder app, IOptions<ExceptionHandlerOptions>? options)
src\Shared\Reroute.cs (4)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next) 16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 18var builder = app.New();
StatusCodePage\StatusCodePagesExtensions.cs (16)
25public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app, StatusCodePagesOptions options) 39public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app) 53public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app, Func<StatusCodeContext, Task> handler) 72public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app, string contentType, string bodyFormat) 92public static IApplicationBuilder UseStatusCodePagesWithRedirects(this IApplicationBuilder app, string locationFormat) 124public static IApplicationBuilder UseStatusCodePages(this IApplicationBuilder app, Action<IApplicationBuilder> configuration) 128var builder = app.New(); 142public static IApplicationBuilder UseStatusCodePagesWithReExecute( 143this IApplicationBuilder app,
WelcomePage\WelcomePageExtensions.cs (8)
21public static IApplicationBuilder UseWelcomePage(this IApplicationBuilder app, WelcomePageOptions options) 35public static IApplicationBuilder UseWelcomePage(this IApplicationBuilder app, PathString path) 51public static IApplicationBuilder UseWelcomePage(this IApplicationBuilder app, string path) 66public static IApplicationBuilder UseWelcomePage(this IApplicationBuilder app)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (18)
DatabaseErrorPageExtensions.cs (9)
12/// <see cref="IApplicationBuilder"/> extension methods for the <see cref="DatabaseErrorPageMiddleware"/>. 21/// <param name="app">The <see cref="IApplicationBuilder"/> to register the middleware with.</param> 22/// <returns>The same <see cref="IApplicationBuilder"/> instance so that multiple calls can be chained.</returns> 25public static IApplicationBuilder UseDatabaseErrorPage(this IApplicationBuilder app) 36/// <param name="app">The <see cref="IApplicationBuilder"/> to register the middleware with.</param> 38/// <returns>The same <see cref="IApplicationBuilder"/> instance so that multiple calls can be chained.</returns> 41public static IApplicationBuilder UseDatabaseErrorPage( 42this IApplicationBuilder app, DatabaseErrorPageOptions options)
MigrationsEndPointExtensions.cs (9)
11/// <see cref="IApplicationBuilder"/> extension methods for the <see cref="MigrationsEndPointMiddleware"/>. 18/// <param name="app">The <see cref="IApplicationBuilder"/> to register the middleware with.</param> 19/// <returns>The same <see cref="IApplicationBuilder"/> instance so that multiple calls can be chained.</returns> 20public static IApplicationBuilder UseMigrationsEndPoint(this IApplicationBuilder app) 30/// <param name="app">The <see cref="IApplicationBuilder"/> to register the middleware with.</param> 32/// <returns>The same <see cref="IApplicationBuilder"/> instance so that multiple calls can be chained.</returns> 33public static IApplicationBuilder UseMigrationsEndPoint(this IApplicationBuilder app, MigrationsEndPointOptions options)
Microsoft.AspNetCore.Diagnostics.HealthChecks (20)
Builder\HealthCheckApplicationBuilderExtensions.cs (20)
13/// <see cref="IApplicationBuilder"/> extension methods for the <see cref="HealthCheckMiddleware"/>. 20/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 34public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path) 45/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 57public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path, HealthCheckOptions options) 69/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 85public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path, int port) 96/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 112public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path, string port) 129/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 143public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path, int port, HealthCheckOptions options) 155/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 169public static IApplicationBuilder UseHealthChecks(this IApplicationBuilder app, PathString path, string port, HealthCheckOptions options) 191private static void UseHealthChecksCore(IApplicationBuilder app, PathString path, int? port, object[] args)
Microsoft.AspNetCore.Diagnostics.Middleware (10)
Latency\CapturePipelineEntryStartupFilter.cs (3)
16/// Wraps the <see cref="IApplicationBuilder"/> directly adds 21public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Latency\RequestLatencyTelemetryApplicationBuilderExtensions.cs (7)
18/// <param name="builder">The <see cref="IApplicationBuilder"/>.</param> 21public static IApplicationBuilder UseRequestCheckpoint(this IApplicationBuilder builder) 28/// Adds the request latency telemetry middleware to <see cref="IApplicationBuilder"/> request execution pipeline. 30/// <param name="builder">The <see cref="IApplicationBuilder"/>.</param> 33public static IApplicationBuilder UseRequestLatencyTelemetry(this IApplicationBuilder builder)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (1)
53public static void Configure(IApplicationBuilder app)
Logging\AcceptanceTests.Mvc.cs (1)
44public static void Configure(IApplicationBuilder app)
Logging\AcceptanceTests.Routing.cs (1)
35public static void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
255public IApplicationBuilder CreateApplicationBuilder()
Microsoft.AspNetCore.HeaderPropagation (4)
DependencyInjection\HeaderPropagationApplicationBuilderExtensions.cs (4)
12/// <see cref="IApplicationBuilder"/> extension methods for <see cref="HeaderPropagationMiddleware"/> which propagates request headers to an <see cref="HttpClient"/>. 25/// <param name="app">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 27public static IApplicationBuilder UseHeaderPropagation(this IApplicationBuilder app)
Microsoft.AspNetCore.HostFiltering (4)
HostFilteringBuilderExtensions.cs (4)
17/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 18/// <returns>The original <see cref="IApplicationBuilder"/>.</returns> 19public static IApplicationBuilder UseHostFiltering(this IApplicationBuilder app)
Microsoft.AspNetCore.Hosting (40)
Builder\ApplicationBuilderFactory.cs (4)
12/// A factory for creating <see cref="IApplicationBuilder" /> instances. 28/// Create an <see cref="IApplicationBuilder" /> builder given a <paramref name="serverFeatures" />. 31/// <returns>An <see cref="IApplicationBuilder"/> configured with <paramref name="serverFeatures"/>.</returns> 32public IApplicationBuilder CreateBuilder(IFeatureCollection serverFeatures)
Builder\IApplicationBuilderFactory.cs (4)
10/// Provides an interface for implementing a factory that produces <see cref="IApplicationBuilder"/> instances. 15/// Create an <see cref="IApplicationBuilder" /> builder given a <paramref name="serverFeatures" /> 18/// <returns>An <see cref="IApplicationBuilder"/> configured with <paramref name="serverFeatures"/>.</returns> 19IApplicationBuilder CreateBuilder(IFeatureCollection serverFeatures);
GenericHost\GenericWebHostBuilder.cs (2)
312public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 335public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
GenericHost\GenericWebHostService.cs (1)
133var builder = ApplicationBuilderFactory.CreateBuilder(Server.Features);
GenericHost\GenericWebHostServiceOptions.cs (1)
10public Action<IApplicationBuilder>? ConfigureApplication { get; set; }
GenericHost\HostingStartupWebHostBuilder.cs (2)
71public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 76public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
GenericHost\SlimWebHostBuilder.cs (2)
62public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 77public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
Infrastructure\ISupportsStartup.cs (5)
11/// An interface implemented by IWebHostBuilders that handle <see cref="WebHostBuilderExtensions.Configure(IWebHostBuilder, Action{IApplicationBuilder})"/>, 20/// <param name="configure">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 22IWebHostBuilder Configure(Action<IApplicationBuilder> configure); 27/// <param name="configure">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 29IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure);
Internal\ConfigureBuilder.cs (3)
20public Action<IApplicationBuilder> Build(object? instance) => builder => Invoke(instance, builder); 22private void Invoke(object? instance, IApplicationBuilder builder) 34if (parameterInfo.ParameterType == typeof(IApplicationBuilder))
Internal\StartupMethods.cs (2)
12public StartupMethods(object? instance, Action<IApplicationBuilder> configure, Func<IServiceCollection, IServiceProvider> configureServices) 24public Action<IApplicationBuilder> ConfigureDelegate { get; }
Internal\WebHost.cs (2)
210var builder = builderFactory.CreateBuilder(Server.Features); 214Action<IApplicationBuilder> configure = _startup!.Configure;
Startup\ConventionBasedStartup.cs (1)
20public void Configure(IApplicationBuilder app)
Startup\DelegateStartup.cs (5)
16private readonly Action<IApplicationBuilder> _configureApp; 23public DelegateStartup(IServiceProviderFactory<IServiceCollection> factory, Action<IApplicationBuilder> configureApp) : base(factory) 29/// Configures the <see cref="IApplicationBuilder"/> with the initialized <see cref="Action"/>. 31/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 32public override void Configure(IApplicationBuilder app) => _configureApp(app);
Startup\StartupBase.cs (2)
17/// <param name="app">An <see cref="IApplicationBuilder"/> for the app to configure.</param> 18public abstract void Configure(IApplicationBuilder app);
WebHostBuilderExtensions.cs (4)
29/// <param name="configureApp">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 31public static IWebHostBuilder Configure(this IWebHostBuilder hostBuilder, Action<IApplicationBuilder> configureApp) 58/// <param name="configureApp">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> 60public static IWebHostBuilder Configure(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, IApplicationBuilder> configureApp)
Microsoft.AspNetCore.Hosting.Abstractions (4)
IStartup.cs (2)
23/// <param name="app">An <see cref="IApplicationBuilder"/> for the app to configure.</param> 24void Configure(IApplicationBuilder app);
IStartupFilter.cs (2)
21Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next);
Microsoft.AspNetCore.Hosting.Tests (52)
ConfigureBuilderTests.cs (1)
25Action<IApplicationBuilder> action = builder.Build(instance: null);
Fakes\GenericWebHostBuilderWrapper.cs (2)
30public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 36public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
Fakes\Startup.cs (1)
94public virtual void Configure(IApplicationBuilder builder)
Fakes\StartupCaseInsensitive.cs (1)
23public void ConfigureCaseInsensitive(IApplicationBuilder app)
Fakes\StartupConfigureServicesThrows.cs (1)
16public void Configure(IApplicationBuilder builder)
Fakes\StartupConfigureThrows.cs (1)
15public void Configure(IApplicationBuilder builder)
Fakes\StartupCtorThrows.cs (1)
15public void Configure(IApplicationBuilder app)
Fakes\StartupNoServices.cs (1)
14public override void Configure(IApplicationBuilder builder)
Fakes\StartupNoServicesNoInterface.cs (1)
16public void Configure(IApplicationBuilder app)
Fakes\StartupPrivateConfigure.cs (1)
20private void Configure(IApplicationBuilder builder)
Fakes\StartupStaticCtorThrows.cs (1)
15public void Configure(IApplicationBuilder app)
Fakes\StartupTwoConfigures.cs (2)
14public void Configure(IApplicationBuilder builder) 19public void Configure(IApplicationBuilder builder, object service)
Fakes\StartupTwoConfigureServices.cs (1)
25public void Configure(IApplicationBuilder builder)
Fakes\StartupWithBuiltConfigureServices.cs (1)
16public void Configure(IApplicationBuilder app) { }
Fakes\StartupWithConfigureServices.cs (1)
16public void Configure(IApplicationBuilder app, IFoo foo)
Fakes\StartupWithConfigureServicesNotResolved.cs (1)
14public void Configure(IApplicationBuilder builder, int notAService)
Fakes\StartupWithHostingEnvironment.cs (1)
16public void Configure(IApplicationBuilder app)
Fakes\StartupWithILoggerFactory.cs (1)
26public void Configure(IApplicationBuilder builder, ILoggerFactory loggerFactory)
Fakes\StartupWithScopedServices.cs (1)
13public void Configure(IApplicationBuilder builder, DisposableService disposable)
Fakes\StartupWithServices.cs (1)
17public void Configure(IApplicationBuilder builder, IFakeStartupCallback fakeStartupCallback2)
StartupManagerTests.cs (10)
158public void Configure(IApplicationBuilder builder) 177public void Configure(IApplicationBuilder builder) 226public void Configure(IApplicationBuilder builder) 273public void Configure(IApplicationBuilder builder) 657public void Configure(IApplicationBuilder app) 680public void Configure(IApplicationBuilder app) 698public void Configure(IApplicationBuilder app) 710public override void Configure(IApplicationBuilder app) 741public void Configure(IApplicationBuilder app) 747public void ConfigureNo(IApplicationBuilder app)
WebHostBuilderTests.cs (15)
113void Configure(IApplicationBuilder app) 849void Configure(IApplicationBuilder app) 1140public void Configure(IApplicationBuilder app) 1473private static void StaticConfigureMethod(IApplicationBuilder app) { } 1561public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 1637public void Configure(IApplicationBuilder app, DisposableService disposable) 1656public void Configure(IApplicationBuilder app) 1706private readonly Action<IApplicationBuilder> _configure; 1708public DelegatingStartupWithIStartup(Func<IServiceCollection, IServiceProvider> configureServices, Action<IApplicationBuilder> configure) 1716void IStartup.Configure(IApplicationBuilder app) => _configure(app); 1722private readonly Action<IApplicationBuilder> _configure; 1724public DelegatingStartup(Action<IServiceCollection> configureServices, Action<IApplicationBuilder> configure) 1731public void Configure(IApplicationBuilder app) => _configure(app); 1746public void Configure(IApplicationBuilder app)
WebHostTests.cs (5)
784public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 977public void Configure(IApplicationBuilder app) 1085public void Configure(IApplicationBuilder app) { } 1293public void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.Hosting.TestSites (1)
StartupShutdown.cs (1)
14public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory, IHostApplicationLifetime lifetime)
Microsoft.AspNetCore.Http (8)
Builder\ApplicationBuilder.cs (5)
12/// Default implementation for <see cref="IApplicationBuilder"/>. 119/// <returns>An instance of <see cref="IApplicationBuilder"/> after the operation has completed.</returns> 120public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware) 155public IApplicationBuilder New() 176$"Please register the EndpointMiddleware using '{nameof(IApplicationBuilder)}.UseEndpoints(...)' if using " +
Timeouts\RequestTimeoutsIApplicationBuilderExtensions.cs (3)
20/// <param name="builder">The <see cref="IApplicationBuilder"/>.</param> 21public static IApplicationBuilder UseRequestTimeouts(this IApplicationBuilder builder)
Microsoft.AspNetCore.Http.Abstractions (63)
Extensions\MapExtensions.cs (16)
18/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 21/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 22public static IApplicationBuilder Map(this IApplicationBuilder app, string pathMatch, Action<IApplicationBuilder> configuration) 31/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 34/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 35public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, Action<IApplicationBuilder> configuration) 44/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 48/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 49public static IApplicationBuilder Map(this IApplicationBuilder app, PathString pathMatch, bool preserveMatchedPathSegment, Action<IApplicationBuilder> configuration) 60var branchBuilder = app.New();
Extensions\MapWhenExtensions.cs (4)
23public static IApplicationBuilder MapWhen(this IApplicationBuilder app, Predicate predicate, Action<IApplicationBuilder> configuration) 30var branchBuilder = app.New();
Extensions\RunExtensions.cs (2)
16/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 18public static void Run(this IApplicationBuilder app, RequestDelegate handler)
Extensions\UseExtensions.cs (11)
15/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead. 17/// Prefer using <see cref="Use(IApplicationBuilder, Func{HttpContext, RequestDelegate, Task})"/> for better performance as shown below: 26/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 28/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 29public static IApplicationBuilder Use(this IApplicationBuilder app, Func<HttpContext, Func<Task>, Task> middleware) 43/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead. 45/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 47/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 48public static IApplicationBuilder Use(this IApplicationBuilder app, Func<HttpContext, RequestDelegate, Task> middleware)
Extensions\UseMiddlewareExtensions.cs (10)
34/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 36/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 37public static IApplicationBuilder UseMiddleware<[DynamicallyAccessedMembers(MiddlewareAccessibility)] TMiddleware>(this IApplicationBuilder app, params object?[] args) 45/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 48/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 49public static IApplicationBuilder UseMiddleware( 50this IApplicationBuilder app, 104private readonly IApplicationBuilder _app; 112IApplicationBuilder app,
Extensions\UsePathBaseExtensions.cs (5)
11/// Extension methods for <see cref="IApplicationBuilder"/>. 18/// <param name="app">The <see cref="IApplicationBuilder"/> instance.</param> 20/// <returns>The <see cref="IApplicationBuilder"/> instance.</returns> 21public static IApplicationBuilder UsePathBase(this IApplicationBuilder app, PathString pathBase)
Extensions\UseWhenExtensions.cs (5)
11/// Extension methods for <see cref="IApplicationBuilder"/>. 22public static IApplicationBuilder UseWhen(this IApplicationBuilder app, Predicate predicate, Action<IApplicationBuilder> configuration) 31var branchBuilder = app.New();
IApplicationBuilder.cs (6)
36/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 37IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware); 40/// Creates a new <see cref="IApplicationBuilder"/> that shares the <see cref="Properties"/> of this 41/// <see cref="IApplicationBuilder"/>. 43/// <returns>The new <see cref="IApplicationBuilder"/>.</returns> 44IApplicationBuilder New();
src\Shared\Reroute.cs (4)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next) 16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 18var builder = app.New();
Microsoft.AspNetCore.Http.Abstractions.Tests (14)
MapPathMiddlewareTests.cs (6)
20private static void UseSuccess(IApplicationBuilder app) 30private static void UseNotImplemented(IApplicationBuilder app) 233mockWebApplication.Map("/foo", (IApplicationBuilder app) => { }); 260public IApplicationBuilder CreateApplicationBuilder() => throw new NotImplementedException(); 262public IApplicationBuilder New() => this; 264public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)
MapPredicateMiddlewareTests.cs (2)
20private static void UseSuccess(IApplicationBuilder app) 30private static void UseNotImplemented(IApplicationBuilder app)
UsePathBaseExtensionsTests.cs (6)
20var builder = new ApplicationBuilderWrapper(CreateBuilder(), () => useCalled = true) 32private readonly IApplicationBuilder _wrappedBuilder; 35public ApplicationBuilderWrapper(IApplicationBuilder applicationBuilder, Action useCallback) 41public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware) 56public IApplicationBuilder New() => _wrappedBuilder.New(); 211var builder = CreateBuilder()
Microsoft.AspNetCore.Http.Connections (1)
ConnectionEndpointRouteBuilderExtensions.cs (1)
97var app = endpoints.CreateApplicationBuilder();
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
472public DefaultEndpointRouteBuilder(IApplicationBuilder applicationBuilder) 478private IApplicationBuilder ApplicationBuilder { get; } 480public IApplicationBuilder CreateApplicationBuilder() => ApplicationBuilder.New();
Microsoft.AspNetCore.Http.Microbenchmarks (3)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (3)
472public DefaultEndpointRouteBuilder(IApplicationBuilder applicationBuilder) 478private IApplicationBuilder ApplicationBuilder { get; } 480public IApplicationBuilder CreateApplicationBuilder() => ApplicationBuilder.New();
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
162var builder2 = builder1.New();
Microsoft.AspNetCore.HttpLogging (10)
HttpLoggingBuilderExtensions.cs (10)
19/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 20/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 21public static IApplicationBuilder UseHttpLogging(this IApplicationBuilder app) 34/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 35/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 36public static IApplicationBuilder UseW3CLogging(this IApplicationBuilder app) 46private static void VerifyHttpLoggingServicesAreRegistered(IApplicationBuilder app) 58private static void VerifyW3CLoggingServicesAreRegistered(IApplicationBuilder app)
Microsoft.AspNetCore.HttpOverrides (14)
CertificateForwardingBuilderExtensions.cs (2)
19public static IApplicationBuilder UseCertificateForwarding(this IApplicationBuilder app)
ForwardedHeadersExtensions.cs (6)
23/// <param name="builder">The <see cref="IApplicationBuilder" />.</param> 25public static IApplicationBuilder UseForwardedHeaders(this IApplicationBuilder builder) 47/// <param name="builder">The <see cref="IApplicationBuilder" />.</param> 50public static IApplicationBuilder UseForwardedHeaders(this IApplicationBuilder builder, ForwardedHeadersOptions options)
HttpMethodOverrideExtensions.cs (6)
19/// <param name="builder">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 20public static IApplicationBuilder UseHttpMethodOverride(this IApplicationBuilder builder) 31/// <param name="builder">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 35public static IApplicationBuilder UseHttpMethodOverride(this IApplicationBuilder builder, HttpMethodOverrideOptions options)
Microsoft.AspNetCore.HttpsPolicy (7)
HstsBuilderExtensions.cs (3)
16/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 17public static IApplicationBuilder UseHsts(this IApplicationBuilder app)
HttpsRedirectionBuilderExtensions.cs (4)
17/// <param name="app">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 18/// <returns>The <see cref="IApplicationBuilder"/> for HttpsRedirection.</returns> 19public static IApplicationBuilder UseHttpsRedirection(this IApplicationBuilder app)
Microsoft.AspNetCore.Localization (16)
ApplicationBuilderExtensions.cs (16)
18/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 19/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 20public static IApplicationBuilder UseRequestLocalization(this IApplicationBuilder app) 31/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 33/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 34public static IApplicationBuilder UseRequestLocalization( 35this IApplicationBuilder app, 48/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 53/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 54public static IApplicationBuilder UseRequestLocalization( 55this IApplicationBuilder app, 71/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 73/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 77public static IApplicationBuilder UseRequestLocalization( 78this IApplicationBuilder app,
Microsoft.AspNetCore.MiddlewareAnalysis (10)
AnalysisBuilder.cs (6)
11/// An <see cref="IApplicationBuilder"/> decorator used by <see cref="AnalysisStartupFilter"/> 21/// <param name="inner">The <see cref="IApplicationBuilder"/> to decorate.</param> 22public AnalysisBuilder(IApplicationBuilder inner) 27private IApplicationBuilder InnerBuilder { get; } 57public IApplicationBuilder New() 63public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)
AnalysisMiddleware.cs (1)
26/// The name of the next middleware in the pipeline. This name is typically retrieved from <see cref="Builder.IApplicationBuilder.Properties"/>
AnalysisStartupFilter.cs (3)
16/// Wraps the <see cref="IApplicationBuilder"/> with <see cref="AnalysisBuilder"/> and directly adds 20public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
EndpointMetadataApiDescriptionProviderTest.cs (3)
1617public TestEndpointRouteBuilder(IApplicationBuilder applicationBuilder) 1623public IApplicationBuilder ApplicationBuilder { get; } 1625public IApplicationBuilder CreateApplicationBuilder() => ApplicationBuilder.New();
Microsoft.AspNetCore.Mvc.Core (26)
Builder\MvcApplicationBuilderExtensions.cs (17)
14/// Extension methods for <see cref="IApplicationBuilder"/> to add MVC to the request execution pipeline. 19/// Adds MVC to the <see cref="IApplicationBuilder"/> request execution pipeline. 21/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 24/// <see cref="UseMvc(IApplicationBuilder, Action{IRouteBuilder})"/>.</remarks> 25public static IApplicationBuilder UseMvc(this IApplicationBuilder app) 35/// Adds MVC to the <see cref="IApplicationBuilder"/> request execution pipeline 39/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 41public static IApplicationBuilder UseMvcWithDefaultRoute(this IApplicationBuilder app) 54/// Adds MVC to the <see cref="IApplicationBuilder"/> request execution pipeline. 56/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 59public static IApplicationBuilder UseMvc( 60this IApplicationBuilder app, 93public EndpointRouteBuilder(IApplicationBuilder applicationBuilder) 100public IApplicationBuilder ApplicationBuilder { get; } 117private static void VerifyMvcIsRegistered(IApplicationBuilder app)
Filters\MiddlewareFilterBuilder.cs (2)
24public IApplicationBuilder? ApplicationBuilder { get; set; } 50var nestedAppBuilder = ApplicationBuilder.New();
Filters\MiddlewareFilterBuilderStartupFilter.cs (3)
12public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 16void MiddlewareFilterBuilder(IApplicationBuilder builder)
Filters\MiddlewareFilterConfigurationProvider.cs (4)
18public static Action<IApplicationBuilder> CreateConfigureDelegate(Type configurationType) 85public Action<IApplicationBuilder> Build(object instance) 90private void Invoke(object instance, IApplicationBuilder builder) 98if (parameterInfo.ParameterType == typeof(IApplicationBuilder))
Microsoft.AspNetCore.Mvc.Core.Test (23)
Builder\MvcApplicationBuilderExtensionsTest.cs (1)
18var applicationBuilderMock = new Mock<IApplicationBuilder>();
Filters\MiddlewareFilterAttributeTest.cs (4)
42public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 44public void Configure(IApplicationBuilder appBuilder) 52public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 54public void Configure(IApplicationBuilder appBuilder)
Filters\MiddlewareFilterBuilderTest.cs (2)
294public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 296public void Configure(IApplicationBuilder appBuilder)
Filters\MiddlewareFilterConfigurationProviderTest.cs (11)
51var applicationBuilder = GetApplicationBuilder(services); 93private IApplicationBuilder GetApplicationBuilder(ServiceCollection services = null) 101var applicationBuilder = new Mock<IApplicationBuilder>(); 111public void Configure(IApplicationBuilder appBuilder) { } 117IApplicationBuilder appBuilder, 128public void ConfigureProduction(IApplicationBuilder appBuilder) { } 134IApplicationBuilder appBuilder, 145public void ConfigureDevelopment(IApplicationBuilder appBuilder) 150public void ConfigureProduction(IApplicationBuilder appBuilder) 166public void Foo(IApplicationBuilder appBuilder) 174private void Configure(IApplicationBuilder appBuilder)
Filters\MiddlewareFilterTest.cs (4)
289public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 291public void Configure(IApplicationBuilder appBuilder) 299public static Action<IApplicationBuilder> ConfigurePipeline { get; set; } 301public void Configure(IApplicationBuilder appBuilder)
Routing\UrlHelperTest.cs (1)
127var app = new Mock<IApplicationBuilder>();
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Infrastructure\CultureReplacerStartupFilter.cs (3)
15public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 19void AddCulture(IApplicationBuilder builder)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
234public IApplicationBuilder CreateApplicationBuilder()
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
307public IApplicationBuilder CreateApplicationBuilder()
RemoteAttributeTest.cs (1)
448var app = new Mock<IApplicationBuilder>(MockBehavior.Strict);
Microsoft.AspNetCore.OpenApi.Tests (3)
Services\OpenApiDocumentServiceTestsBase.cs (3)
169public TestEndpointRouteBuilder(IApplicationBuilder applicationBuilder) 175public IApplicationBuilder ApplicationBuilder { get; } 177public IApplicationBuilder CreateApplicationBuilder() => ApplicationBuilder.New();
Microsoft.AspNetCore.OutputCaching (3)
OutputCacheApplicationBuilderExtensions.cs (3)
16/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 17public static IApplicationBuilder UseOutputCache(this IApplicationBuilder app)
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
102Action<IApplicationBuilder>? configureDelegate = null, 132Action<IApplicationBuilder>? configureDelegate = null,
Microsoft.AspNetCore.Owin (23)
OwinExtensions.cs (23)
26/// Adds an OWIN pipeline to the specified <see cref="IApplicationBuilder"/>. 28/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the pipeline to.</param> 30public static AddMiddleware UseOwin(this IApplicationBuilder builder) 68/// Adds OWIN middleware pipeline to the specified <see cref="IApplicationBuilder"/>. 70/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 72/// <returns>The original <see cref="IApplicationBuilder"/>.</returns> 73public static IApplicationBuilder UseOwin(this IApplicationBuilder builder, Action<AddMiddleware> pipeline) 83/// Creates an <see cref="IApplicationBuilder"/> for an OWIN pipeline. 86/// <returns>An <see cref="IApplicationBuilder"/></returns> 87public static IApplicationBuilder UseBuilder(this AddMiddleware app) 93/// Creates an <see cref="IApplicationBuilder"/> for an OWIN pipeline. 96/// <param name="serviceProvider">A service provider for <see cref="IApplicationBuilder.ApplicationServices"/>.</param> 97/// <returns>An <see cref="IApplicationBuilder"/>.</returns> 98public static IApplicationBuilder UseBuilder(this AddMiddleware app, IServiceProvider serviceProvider) 156/// Creates an <see cref="IApplicationBuilder"/> for an OWIN pipeline. 160/// <returns>An <see cref="IApplicationBuilder"/>.</returns> 161public static AddMiddleware UseBuilder(this AddMiddleware app, Action<IApplicationBuilder> pipeline) 167/// Creates an <see cref="IApplicationBuilder"/> for an OWIN pipeline. 171/// <param name="serviceProvider">A service provider for <see cref="IApplicationBuilder.ApplicationServices"/>.</param> 172/// <returns>An <see cref="IApplicationBuilder"/>.</returns> 173public static AddMiddleware UseBuilder(this AddMiddleware app, Action<IApplicationBuilder> pipeline, IServiceProvider serviceProvider) 178var builder = app.UseBuilder(serviceProvider);
Microsoft.AspNetCore.RateLimiting (5)
RateLimiterApplicationBuilderExtensions.cs (5)
21public static IApplicationBuilder UseRateLimiter(this IApplicationBuilder app) 36public static IApplicationBuilder UseRateLimiter(this IApplicationBuilder app, RateLimiterOptions options) 46private static void VerifyServicesAreRegistered(IApplicationBuilder app)
Microsoft.AspNetCore.RequestDecompression (3)
RequestDecompressionBuilderExtensions.cs (3)
16/// <param name="builder">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 17public static IApplicationBuilder UseRequestDecompression(this IApplicationBuilder builder)
Microsoft.AspNetCore.RequestDecompression.Tests (1)
RequestDecompressionBuilderExtensionsTests.cs (1)
14IApplicationBuilder builder = null;
Microsoft.AspNetCore.ResponseCaching (3)
ResponseCachingExtensions.cs (3)
16/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 17public static IApplicationBuilder UseResponseCaching(this IApplicationBuilder app)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
TestUtils.cs (2)
117Action<IApplicationBuilder> configureDelegate = null, 142Action<IApplicationBuilder> configureDelegate = null,
Microsoft.AspNetCore.ResponseCompression (3)
ResponseCompressionBuilderExtensions.cs (3)
16/// <param name="builder">The <see cref="IApplicationBuilder"/> instance this method extends.</param> 17public static IApplicationBuilder UseResponseCompression(this IApplicationBuilder builder)
Microsoft.AspNetCore.Rewrite (12)
RewriteBuilderExtensions.cs (8)
21/// <param name="app">The <see cref="IApplicationBuilder"/></param> 23public static IApplicationBuilder UseRewriter(this IApplicationBuilder app) 33/// <param name="app">The <see cref="IApplicationBuilder"/></param> 36public static IApplicationBuilder UseRewriter(this IApplicationBuilder app, RewriteOptions options) 45private static IApplicationBuilder AddRewriteMiddleware(IApplicationBuilder app, IOptions<RewriteOptions>? options)
src\Shared\Reroute.cs (4)
14internal static RequestDelegate Reroute(IApplicationBuilder app, object routeBuilder, RequestDelegate next) 16if (app.Properties.TryGetValue(UseRoutingKey, out var useRouting) && useRouting is Func<IApplicationBuilder, IApplicationBuilder> useRoutingFunc) 18var builder = app.New();
Microsoft.AspNetCore.Routing (58)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (21)
12/// Contains extensions for configuring routing on an <see cref="IApplicationBuilder"/>. 21/// Adds a <see cref="EndpointRoutingMiddleware"/> middleware to the specified <see cref="IApplicationBuilder"/>. 23/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 27/// A call to <see cref="UseRouting(IApplicationBuilder)"/> must be followed by a call to 28/// <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> for the same <see cref="IApplicationBuilder"/> 39public static IApplicationBuilder UseRouting(this IApplicationBuilder builder) 66/// Adds a <see cref="EndpointMiddleware"/> middleware to the specified <see cref="IApplicationBuilder"/> 71/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 76/// A call to <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> must be preceded by a call to 77/// <see cref="UseRouting(IApplicationBuilder)"/> for the same <see cref="IApplicationBuilder"/> 88public static IApplicationBuilder UseEndpoints(this IApplicationBuilder builder, Action<IEndpointRouteBuilder> configure) 116private static void VerifyRoutingServicesAreRegistered(IApplicationBuilder app) 129private static void VerifyEndpointRoutingMiddlewareIsRegistered(IApplicationBuilder app, out IEndpointRouteBuilder endpointRouteBuilder) 136$"Please add {nameof(EndpointRoutingMiddleware)} by calling '{nameof(IApplicationBuilder)}.{nameof(UseRouting)}' inside the call " + 148$"The {nameof(EndpointRoutingMiddleware)} and {nameof(EndpointMiddleware)} must be added to the same {nameof(IApplicationBuilder)} instance. " + 149$"To use Endpoint Routing with 'Map(...)', make sure to call '{nameof(IApplicationBuilder)}.{nameof(UseRouting)}' before " + 150$"'{nameof(IApplicationBuilder)}.{nameof(UseEndpoints)}' for each branch of the middleware pipeline.";
Builder\RoutingBuilderExtensions.cs (9)
10/// Extension methods for adding the <see cref="RouterMiddleware"/> middleware to an <see cref="IApplicationBuilder"/>. 15/// Adds a <see cref="RouterMiddleware"/> middleware to the specified <see cref="IApplicationBuilder"/> with the specified <see cref="IRouter"/>. 17/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 20public static IApplicationBuilder UseRouter(this IApplicationBuilder builder, IRouter router) 37/// Adds a <see cref="RouterMiddleware"/> middleware to the specified <see cref="IApplicationBuilder"/> 40/// <param name="builder">The <see cref="IApplicationBuilder"/> to add the middleware to.</param> 43public static IApplicationBuilder UseRouter(this IApplicationBuilder builder, Action<IRouteBuilder> action)
DefaultEndpointRouteBuilder.cs (3)
10public DefaultEndpointRouteBuilder(IApplicationBuilder applicationBuilder) 16public IApplicationBuilder ApplicationBuilder { get; } 18public IApplicationBuilder CreateApplicationBuilder() => ApplicationBuilder.New();
IEndpointRouteBuilder.cs (3)
15/// Creates a new <see cref="IApplicationBuilder"/>. 17/// <returns>The new <see cref="IApplicationBuilder"/>.</returns> 18IApplicationBuilder CreateApplicationBuilder();
IRouteBuilder.cs (2)
15/// Gets the <see cref="IApplicationBuilder"/>. 17IApplicationBuilder ApplicationBuilder { get; }
RequestDelegateRouteBuilderExtensions.cs (14)
45/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 47public static IRouteBuilder MapMiddlewareRoute(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action) 49var nested = builder.ApplicationBuilder.New(); 73/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 75public static IRouteBuilder MapMiddlewareDelete(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action) 115/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 117public static IRouteBuilder MapMiddlewareGet(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action) 157/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 159public static IRouteBuilder MapMiddlewarePost(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action) 199/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 201public static IRouteBuilder MapMiddlewarePut(this IRouteBuilder builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action) 284/// <param name="action">The action to apply to the <see cref="IApplicationBuilder"/>.</param> 290Action<IApplicationBuilder> action) 292var nested = builder.ApplicationBuilder.New();
RouteBuilder.cs (5)
19/// <param name="applicationBuilder">An <see cref="IApplicationBuilder"/> instance.</param> 20public RouteBuilder(IApplicationBuilder applicationBuilder) 29/// <param name="applicationBuilder">An <see cref="IApplicationBuilder"/> instance.</param> 31public RouteBuilder(IApplicationBuilder applicationBuilder, IRouter? defaultHandler) 51public IApplicationBuilder ApplicationBuilder { get; }
RouteGroupBuilder.cs (1)
35IApplicationBuilder IEndpointRouteBuilder.CreateApplicationBuilder() => _outerEndpointRouteBuilder.CreateApplicationBuilder();
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
104public IApplicationBuilder CreateApplicationBuilder()
Microsoft.AspNetCore.Routing.Tests (12)
Builder\RoutingBuilderExtensionsTest.cs (1)
17var applicationBuilderMock = new Mock<IApplicationBuilder>();
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
219new DefaultEndpointRouteBuilder(Mock.Of<IApplicationBuilder>()),
EndpointRoutingMiddlewareTest.cs (1)
479new DefaultEndpointRouteBuilder(Mock.Of<IApplicationBuilder>()),
RequestDelegateRouteBuilderExtensionsTest.cs (1)
141var applicationBuilder = new Mock<IApplicationBuilder>();
RouteBuilderTest.cs (3)
19var applicationBuilderMock = new Mock<IApplicationBuilder>(); 21var applicationBuilder = applicationBuilderMock.Object; 37var applicationBuilderMock = new Mock<IApplicationBuilder>();
RouteTest.cs (2)
1766var applicationBuilder = Mock.Of<IApplicationBuilder>();
RoutingMetricsTests.cs (1)
166new DefaultEndpointRouteBuilder(Mock.Of<IApplicationBuilder>()),
TemplateParserDefaultValuesTests.cs (2)
136var applicationBuilder = Mock.Of<IApplicationBuilder>();
Microsoft.AspNetCore.Server.IIS (2)
Core\IISServerSetupFilter.cs (2)
13public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Server.IISIntegration (2)
IISSetupFilter.cs (2)
23public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\AddressBinder.cs (1)
116throw new InvalidOperationException(CoreStrings.FormatConfigurePathBaseFromMethodCall($"{nameof(IApplicationBuilder)}.UsePathBase()"));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
KestrelServerTests.cs (1)
129$"A path base can only be configured using {nameof(IApplicationBuilder)}.UsePathBase().",
Microsoft.AspNetCore.Session (8)
SessionMiddlewareExtensions.cs (8)
17/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 18/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 19public static IApplicationBuilder UseSession(this IApplicationBuilder app) 29/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 31/// <returns>The <see cref="IApplicationBuilder"/>.</returns> 32public static IApplicationBuilder UseSession(this IApplicationBuilder app, SessionOptions options)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (1)
75public void Configure(IApplicationBuilder app)
VersionStartup.cs (1)
38public void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Startup.cs (1)
30public void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.SignalR.Tests (2)
NativeAotTests.cs (1)
181public void Configure(IApplicationBuilder app)
Startup.cs (1)
82public void Configure(IApplicationBuilder app)
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyStartupFilter.cs (2)
27public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.SpaServices.Extensions (20)
AngularCli\AngularCliBuilder.cs (1)
48var appBuilder = spaBuilder.ApplicationBuilder;
AngularCli\AngularCliMiddleware.cs (1)
37var appBuilder = spaBuilder.ApplicationBuilder;
DefaultSpaBuilder.cs (2)
10public IApplicationBuilder ApplicationBuilder { get; } 14public DefaultSpaBuilder(IApplicationBuilder applicationBuilder, SpaOptions options)
ISpaBuilder.cs (2)
15/// The <see cref="IApplicationBuilder"/> representing the middleware pipeline 18IApplicationBuilder ApplicationBuilder { get; }
Proxying\SpaProxyingExtensions.cs (2)
60var applicationBuilder = spaBuilder.ApplicationBuilder; 82private static CancellationToken GetStoppingToken(IApplicationBuilder appBuilder)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
37var appBuilder = spaBuilder.ApplicationBuilder;
SpaApplicationBuilderExtensions.cs (2)
23/// <param name="app">The <see cref="IApplicationBuilder"/>.</param> 28public static void UseSpa(this IApplicationBuilder app, Action<ISpaBuilder> configuration)
SpaDefaultPageMiddleware.cs (1)
18var app = spaBuilder.ApplicationBuilder;
StaticFiles\SpaStaticFilesExtensions.cs (6)
50/// <param name="applicationBuilder">The <see cref="IApplicationBuilder"/>.</param> 51public static void UseSpaStaticFiles(this IApplicationBuilder applicationBuilder) 60/// <param name="applicationBuilder">The <see cref="IApplicationBuilder"/>.</param> 62public static void UseSpaStaticFiles(this IApplicationBuilder applicationBuilder, StaticFileOptions options) 73this IApplicationBuilder app, 106IApplicationBuilder app,
StaticFiles\SpaStaticFilesOptions.cs (1)
18/// <see cref="SpaStaticFilesExtensions.UseSpaStaticFiles(Builder.IApplicationBuilder)"/>
Util\LoggerFinder.cs (1)
14IApplicationBuilder appBuilder,
Microsoft.AspNetCore.SpaServices.Extensions.Tests (3)
SpaServicesExtensionsTests.cs (3)
32var applicationbuilder = GetApplicationBuilder(GetServiceProvider()); 41private IApplicationBuilder GetApplicationBuilder(IServiceProvider serviceProvider = null) 48var applicationbuilderMock = new Mock<IApplicationBuilder>();
Microsoft.AspNetCore.StaticFiles (27)
DefaultFilesExtensions.cs (6)
25public static IApplicationBuilder UseDefaultFiles(this IApplicationBuilder app) 42public static IApplicationBuilder UseDefaultFiles(this IApplicationBuilder app, string requestPath) 58public static IApplicationBuilder UseDefaultFiles(this IApplicationBuilder app, DefaultFilesOptions options)
DirectoryBrowserExtensions.cs (6)
25public static IApplicationBuilder UseDirectoryBrowser(this IApplicationBuilder app) 42public static IApplicationBuilder UseDirectoryBrowser(this IApplicationBuilder app, string requestPath) 58public static IApplicationBuilder UseDirectoryBrowser(this IApplicationBuilder app, DirectoryBrowserOptions options)
FileServerExtensions.cs (8)
24public static IApplicationBuilder UseFileServer(this IApplicationBuilder app) 41public static IApplicationBuilder UseFileServer(this IApplicationBuilder app, bool enableDirectoryBrowsing) 61public static IApplicationBuilder UseFileServer(this IApplicationBuilder app, string requestPath) 78public static IApplicationBuilder UseFileServer(this IApplicationBuilder app, FileServerOptions options)
StaticFileExtensions.cs (6)
25public static IApplicationBuilder UseStaticFiles(this IApplicationBuilder app) 42public static IApplicationBuilder UseStaticFiles(this IApplicationBuilder app, string requestPath) 58public static IApplicationBuilder UseStaticFiles(this IApplicationBuilder app, StaticFileOptions options)
StaticFilesEndpointRouteBuilderExtensions.cs (1)
185var app = endpoints.CreateApplicationBuilder();
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFilesTestServer.cs (1)
15public static async Task<IHost> Create(Action<IApplicationBuilder> configureApp, Action<IServiceCollection> configureServices = null)
Microsoft.AspNetCore.TestHost.Tests (11)
TestServerTests.cs (11)
145public void Configure(IApplicationBuilder app) => 239public void Configure(IApplicationBuilder app) 413public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 478public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 520public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 875public void Configure(IApplicationBuilder builder) 901public void Configure(IApplicationBuilder app) 910public void ConfigureFoo(IApplicationBuilder app)
Microsoft.AspNetCore.Testing (1)
FakeStartup.cs (1)
13public void Configure(IApplicationBuilder _)
Microsoft.AspNetCore.Testing.Tests (1)
TestResources\Startup.cs (1)
19public void Configure(IApplicationBuilder app) => app.Use((HttpContext _, Func<Task> _) => Task.CompletedTask);
Microsoft.AspNetCore.Tests (14)
WebApplicationTests.cs (14)
167var newApp = (app as IApplicationBuilder).New(); 1967var newBuilder = ((IApplicationBuilder)app).New(); 2018((IApplicationBuilder)app).Properties["didsomething"] = true; 2904public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 2933public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 2958public void Configure(IApplicationBuilder app) 3142public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next) 3158public Action<IApplicationBuilder> Configure(Action<IApplicationBuilder> next)
Microsoft.AspNetCore.WebSockets (9)
WebSocketMiddlewareExtensions.cs (9)
10/// <see cref="IApplicationBuilder" /> extension methods to add and configure <see cref="WebSocketMiddleware" />. 18/// The <see cref="IApplicationBuilder" /> to configure. 21/// The <see cref="IApplicationBuilder" />. 23public static IApplicationBuilder UseWebSockets(this IApplicationBuilder app) 34/// The <see cref="IApplicationBuilder" /> to configure. 40/// The <see cref="IApplicationBuilder" />. 42public static IApplicationBuilder UseWebSockets(this IApplicationBuilder app, WebSocketOptions options)
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
22Action<IApplicationBuilder> startup = builder =>
MiddlewareAnalysisSample (1)
Startup.cs (1)
16public void Configure(IApplicationBuilder app, ILoggerFactory factory, DiagnosticListener diagnosticListener)
Mvc.RoutingWebSite (11)
Startup.cs (1)
35public virtual void Configure(IApplicationBuilder app)
StartupForDynamic.cs (1)
27public void Configure(IApplicationBuilder app)
StartupForDynamicAndRazorPages.cs (1)
22public void Configure(IApplicationBuilder app)
StartupForDynamicOrder.cs (1)
42public void Configure(IApplicationBuilder app)
StartupForEndpointFilters.cs (1)
23public virtual void Configure(IApplicationBuilder app)
StartupForFallback.cs (1)
25public void Configure(IApplicationBuilder app)
StartupForGroups.cs (1)
23public virtual void Configure(IApplicationBuilder app)
StartupForLinkGenerator.cs (1)
37public void Configure(IApplicationBuilder app)
StartupForRouteGroupsWithMetadata.cs (1)
32public virtual void Configure(IApplicationBuilder app)
StartupRoutingDifferentBranches.cs (1)
38public virtual void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
12public override void Configure(IApplicationBuilder app)
MvcSandbox (1)
Startup.cs (1)
16public void Configure(IApplicationBuilder app)
NativeIISSample (1)
Startup.cs (1)
30public void Configure(IApplicationBuilder app)
Negotiate.Client (1)
Startup.cs (1)
27public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Negotiate.Server (1)
Startup.cs (1)
35public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
NegotiateAuthSample (1)
Startup.cs (1)
47public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
OpenIdConnectSample (1)
Startup.cs (1)
141public void Configure(IApplicationBuilder app, IOptionsMonitor<OpenIdConnectOptions> optionsMonitor)
PathSchemeSelection (1)
Startup.cs (1)
56public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
PlaintextApp (1)
Startup.cs (1)
21public void Configure(IApplicationBuilder app)
RazorBuildWebSite (2)
Startup.cs (1)
17public void Configure(IApplicationBuilder app)
StartupWithHostingStartup.cs (1)
24public void Configure(IApplicationBuilder app)
RazorPagesClassLibrary (1)
ClassLibraryStartup.cs (1)
18public void Configure(IApplicationBuilder app)
RazorPagesWebSite (4)
Startup.cs (1)
21public void Configure(IApplicationBuilder app)
StartupWithBasePath.cs (1)
34public void Configure(IApplicationBuilder app)
StartupWithClientValidationDisabled.cs (1)
24public void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
29public void Configure(IApplicationBuilder app)
RazorWebSite (2)
Startup.cs (1)
40public void Configure(IApplicationBuilder app)
StartupDataAnnotations.cs (1)
27public void Configure(IApplicationBuilder app)
RequestDecompressionSample (1)
Startup.cs (1)
16public void Configure(IApplicationBuilder app)
ResponseCachingSample (1)
Startup.cs (1)
15public void Configure(IApplicationBuilder app)
ResponseCompressionSample (1)
Startup.cs (1)
29public void Configure(IApplicationBuilder app)
RewriteSample (1)
Startup.cs (1)
30public void Configure(IApplicationBuilder app)
RoutingSandbox (4)
HelloExtension\HelloAppBuilderExtensions.cs (2)
11public static IApplicationBuilder UseHello(this IApplicationBuilder app, string greeter)
UseEndpointRoutingStartup.cs (1)
23public void Configure(IApplicationBuilder app)
UseRouterStartup.cs (1)
18public void Configure(IApplicationBuilder app)
RoutingWebSite (7)
HelloExtension\HelloAppBuilderExtensions.cs (2)
11public static IApplicationBuilder UseHello(this IApplicationBuilder app, string greeter)
MapFallbackStartup.cs (1)
13public void Configure(IApplicationBuilder app)
UseEndpointRoutingStartup.cs (2)
22public void Configure(IApplicationBuilder app) 156private void SetupBranch(IApplicationBuilder app, string name)
UseRouterStartup.cs (2)
18public void Configure(IApplicationBuilder app) 41private void SetupBranch(IApplicationBuilder app, string name)
SampleStartups (6)
StartupBlockingOnStart.cs (1)
24public override void Configure(IApplicationBuilder app)
StartupConfigureAddresses.cs (1)
17public override void Configure(IApplicationBuilder app)
StartupExternallyControlled.cs (1)
19public override void Configure(IApplicationBuilder app)
StartupHelloWorld.cs (1)
16public override void Configure(IApplicationBuilder app)
StartupInjection.cs (2)
49public void Configure(IApplicationBuilder app) 66public void Configure(IApplicationBuilder app)
Sandbox (1)
Startup.cs (1)
24public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
SecurityWebSite (7)
Startup.cs (1)
28public void Configure(IApplicationBuilder app)
StartupWithGlobalAuthFilter.cs (1)
38public void Configure(IApplicationBuilder app)
StartupWithGlobalAuthFilterWithoutEndpointRouting.cs (1)
39public void Configure(IApplicationBuilder app)
StartupWithGlobalDenyAnonymousFilter.cs (1)
30public void Configure(IApplicationBuilder app)
StartupWithGlobalDenyAnonymousFilterWithUseMvc.cs (1)
37public void Configure(IApplicationBuilder app)
StartupWithRequireAuth.cs (1)
26public void Configure(IApplicationBuilder app)
StartupWithUseMvc.cs (1)
27public void Configure(IApplicationBuilder app)
SelfHostServer (1)
Startup.cs (1)
26public void Configure(IApplicationBuilder app)
ServerComparison.TestSites (4)
Startup.cs (1)
13public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
StartupNtlmAuthentication.cs (1)
27public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
StartupResponseCompression.cs (1)
19public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
StartupResponses.cs (1)
13public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
SessionSample (1)
Startup.cs (1)
42public void Configure(IApplicationBuilder app)
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
109public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger<Startup> logger)
SignalRSamples (1)
Startup.cs (1)
27public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
SimpleWebSite (1)
Startup.cs (1)
21public void Configure(IApplicationBuilder app)
SocialSample (1)
Startup.cs (1)
239public void Configure(IApplicationBuilder app)
SocialWeather (1)
Startup.cs (1)
22public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
129void IStartup.Configure(IApplicationBuilder app)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
1185private void ConfigureEchoAddress(IApplicationBuilder app)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
129void IStartup.Configure(IApplicationBuilder app)
StaticFileSample (1)
Startup.cs (1)
14public void Configure(IApplicationBuilder app, IWebHostEnvironment host)
StaticFilesAuth (2)
Startup.cs (2)
70public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IAuthorizationService authorizationService) 112private void SetupFileServer(IApplicationBuilder builder, IFileProvider files)
StatusCodePagesSample (1)
Startup.cs (1)
19public void Configure(IApplicationBuilder app)
SystemdTestApp (1)
Startup.cs (1)
21public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
TagHelpersWebSite (1)
Startup.cs (1)
14public void Configure(IApplicationBuilder app)
VersioningWebSite (2)
Startup.cs (1)
20public virtual void Configure(IApplicationBuilder app)
StartupWithoutEndpointRouting.cs (1)
10public override void Configure(IApplicationBuilder app)
Wasm.Performance.Driver (1)
BenchmarkResultsStartup.cs (1)
16public void Configure(IApplicationBuilder app)
WelcomePageSample (1)
Startup.cs (1)
8public void Configure(IApplicationBuilder app)
WsFedSample (1)
Startup.cs (1)
39public void Configure(IApplicationBuilder app)
XmlFormattersWebSite (1)
Startup.cs (1)
101public void Configure(IApplicationBuilder app)