109 references to Use
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
340_app.Use(async (context, next) =>
BasicWebSite (2)
StartupRequestLimitSize.cs (1)
21app.Use((httpContext, next) =>
StartupWhereReadingRequestBodyThrows.cs (1)
21app.Use((context, next) =>
blazor-devserver (2)
Server\Startup.cs (2)
36app.Use(async (ctx, next) => 91app.Use((context, next) =>
DeveloperExceptionPageSample (1)
Startup.cs (1)
17app.Use((context, next) =>
HotAddSample (2)
Startup.cs (2)
36app.Use(async (context, next) => 61app.Use(async (context, next) =>
JwtBearerSample (1)
Startup.cs (1)
48app.Use(async (context, next) =>
Kestrel.SampleApp (2)
ClientCertBufferingFeature.cs (1)
22return builder.Use((context, next) =>
Startup.cs (1)
34app.Use(async (context, next) =>
Microsoft.AspNetCore.Authentication.Test (13)
CertificateTests.cs (1)
802app.Use((context, next) =>
CookieTests.cs (1)
1815app.Use(async (context, next) =>
DynamicSchemeTests.cs (1)
137app.Use(async (context, next) =>
FacebookTests.cs (1)
463app.Use(async (context, next) =>
GoogleTests.cs (1)
1152app.Use(async (context, next) =>
JwtBearerTests.cs (1)
1172app.Use(async (context, next) =>
JwtBearerTests_Handler.cs (1)
1231app.Use(async (context, next) =>
MicrosoftAccountTests.cs (1)
363app.Use(async (context, next) =>
OAuthTests.cs (1)
519app.Use(async (context, next) =>
OpenIdConnect\TestServerBuilder.cs (1)
70app.Use(async (context, next) =>
PolicyTests.cs (1)
470app.Use(async (context, next) =>
RemoteAuthenticationTests.cs (1)
41app.Use(async (context, next) =>
TwitterTests.cs (1)
543app.Use(async (context, next) =>
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
46subBuilder.Use(async (context, next) =>
Microsoft.AspNetCore.Cors.Test (1)
CorsMiddlewareTests.cs (1)
579app.Use(async (context, next) =>
Microsoft.AspNetCore.Diagnostics.Tests (11)
ExceptionHandlerTest.cs (9)
77app.Use(async (httpContext, next) => 134app.Use(async (httpContext, next) => 322app.Use(async (httpContext, next) => 390app.Use(async (httpContext, next) => 546app.Use(async (httpContext, next) => 782app.Use(async (httpContext, next) => 833app.Use(async (httpContext, next) => 888app.Use(async (httpContext, next) => 939app.Use(async (httpContext, next) =>
StatusCodeMiddlewareTest.cs (2)
83app.Use(async (context, next) => 146app.Use((context, next) =>
Microsoft.AspNetCore.HostFiltering.Tests (5)
HostFilteringMiddlewareTests.cs (5)
57app.Use((ctx, next) => 98app.Use((ctx, next) => 153app.Use((ctx, next) => 205app.Use((ctx, next) => 246app.Use((ctx, next) =>
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UseExtensions.cs (1)
17/// Prefer using <see cref="Use(IApplicationBuilder, Func{HttpContext, RequestDelegate, Task})"/> for better performance as shown below:
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
UseExtensionsTests.cs (2)
25builder.Use((context, next) => 59builder.Use(async (context, next) =>
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3519app.Use((c, n) =>
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
113builder.Use((HttpContext context, RequestDelegate next) =>
Microsoft.AspNetCore.HttpOverrides.Tests (10)
CertificateForwardingTest.cs (10)
51app.Use(async (context, next) => 57app.Use(async (context, next) => 89app.Use(async (context, next) => 96app.Use(async (context, next) => 128app.Use(async (context, next) => 134app.Use(async (context, next) => 166app.Use(async (context, next) => 172app.Use(async (context, next) => 204app.Use(async (context, next) => 210app.Use(async (context, next) =>
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
298app.Use(async (context, next) =>
Microsoft.AspNetCore.Mvc.Core.Test (7)
Filters\MiddlewareFilterAttributeTest.cs (1)
25ab.Use((httpContext, next) =>
Filters\MiddlewareFilterBuilderTest.cs (4)
89ab.Use((ctx, next) => 117ab.Use((ctx, next) => 169ab.Use((ctx, next) => 237ab.Use((ctx, next) =>
Filters\MiddlewareFilterTest.cs (2)
91appBuilder.Use((httpContext, next) => 171appBuilder.Use(async (httpContext, next) =>
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
AntiforgeryMiddlewareTest.cs (2)
103app.Use((context, next) => 109app.Use((context, next) =>
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
217app.Use((context, next) => 287app.Use((context, next) => 363app.Use((context, next) => 458app.Use((context, next) => 544app.Use((context, next) => 702app.Use((context, next) =>
Microsoft.AspNetCore.ResponseCompression.Tests (4)
ResponseCompressionMiddlewareTest.cs (4)
1038app.Use((context, next) => 1088app.Use((context, next) => 1138app.Use((context, next) => 1189app.Use((context, next) =>
Microsoft.AspNetCore.Routing.FunctionalTests (3)
MinimalFormTests.cs (1)
449app.Use((context, next) =>
ShortCircuitTests.cs (2)
25app.Use((context, next) => 68app.Use((context, next) =>
Microsoft.AspNetCore.Session.Tests (2)
SessionTests.cs (2)
519app.Use(async (httpContext, next) => 561app.Use(async (httpContext, next) =>
Microsoft.AspNetCore.SpaServices.Extensions (2)
SpaDefaultPageMiddleware.cs (2)
22app.Use((context, next) => 43app.Use((context, next) =>
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
250app.Use(async (context, next) =>
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
98app.Use(async (ctx, next) =>
Microsoft.AspNetCore.TestHost.Tests (2)
TestServerTests.cs (2)
482app.Use(async (context, nxt) => 524app.Use(async (context, nxt) =>
Microsoft.AspNetCore.Tests (8)
WebApplicationTests.cs (8)
1582app.Use((context, next) => 1719app.Use((c, n) => 1893app.Use((context, next) => 2545app.Use((context, next) => 2571app.Use((context, next) => 2624app.Use((context, next) => 2654app.Use((context, next) => 2908app.Use((HttpContext context, RequestDelegate next) =>
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
24builder.Use(async (ct, next) =>
MiddlewareAnalysisSample (2)
Startup.cs (2)
28app.Use((context, next) => 58app.Use(async (context, next) =>
ServerComparison.TestSites (1)
StartupNtlmAuthentication.cs (1)
29app.Use(async (context, next) =>
SignalR.Client.FunctionalTestApp (5)
Startup.cs (5)
120app.Use((context, next) => 152app.Use((context, next) => 166app.Use((context, next) => 177app.Use(async (context, next) => 203app.Use((context, next) =>
StaticFilesAuth (2)
Startup.cs (2)
90branch.Use((context, next) => { SetFileEndpoint(context, files, null); return next(context); }); 96branch.Use((context, next) => { SetFileEndpoint(context, files, "files"); return next(context); });
StatusCodePagesSample (1)
Startup.cs (1)
32app.Use(async (context, next) =>
WebTransportInteractiveSampleApp (1)
Program.cs (1)
44app.Use(async (context, next) =>