567 references to Run
AutobahnTestApp (1)
Startup.cs (1)
16app.Run(async (context) =>
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
12app.Run(async (context) =>
AzureAppServicesSample (1)
Startup.cs (1)
23app.Run(async (context) =>
ConcurrencyLimiterSample (1)
Startup.cs (1)
22app.Run(async context =>
CookiePolicySample (1)
Startup.cs (1)
37app.Run(async context =>
CookieSessionSample (1)
Startup.cs (1)
30app.Run(async context =>
CreateDefaultBuilderApp (1)
Program.cs (1)
31.Configure(app => app.Run(context =>
CreateDefaultBuilderOfTApp (1)
Program.cs (1)
34.Configure(app => app.Run(context =>
DatabaseErrorPageSample (1)
Startup.cs (1)
22app.Run(context =>
DefaultBuilder.SampleApp (2)
Program.cs (1)
63app.Run(async context =>
Startup.cs (1)
17app.Run(async (context) =>
DelegationSite (1)
Program.cs (1)
19app.Run(context =>
DependencyInjectionApp (1)
Program.cs (1)
26app.Run(context =>
DeveloperExceptionPageSample (1)
Startup.cs (1)
38app.Run(context =>
ExceptionHandlerSample (5)
Startup.cs (3)
17errorApp.Run(async context => 42throwApp.Run(context => { throw new Exception("Application Exception"); }); 48app.Run(async context =>
StartupWithProblemDetails.cs (2)
24throwApp.Run(_ => throw new Exception("Application Exception")); 46app.Run(async context =>
GenericWebHost (1)
Program.cs (1)
21app.Run(async (context) =>
HealthChecksSample (8)
BasicStartup.cs (1)
27app.Run(async (context) =>
CustomWriterStartup.cs (1)
35app.Run(async (context) =>
DbContextHealthStartup.cs (3)
48app.Map("/createdatabase", b => b.Run(async (context) => 60app.Map("/deletedatabase", b => b.Run(async (context) => 72app.Run(async (context) =>
DBHealthStartup.cs (1)
36app.Run(async (context) =>
LivenessProbeStartup.cs (1)
57app.Run(async (context) =>
ManagementPortStartup.cs (1)
38app.Run(async (context) =>
HostFilteringSample (1)
Startup.cs (1)
44app.Run(context =>
HotAddSample (1)
Startup.cs (1)
85app.Run(async context =>
Http2SampleApp (1)
Startup.cs (1)
21app.Run(context =>
Http3SampleApp (1)
Startup.cs (1)
20app.Run(async context =>
HttpOverridesSample (1)
Startup.cs (1)
19app.Run(async (context) =>
HttpsPolicySample (1)
Startup.cs (1)
36app.Run(async context =>
IIS.Tests (4)
Utilities\TestServer.cs (4)
83return Create(builder => builder.Run(app), loggerFactory, new IISServerOptions()); 88return Create(builder => builder.Run(app), loggerFactory, options); 93return Create(builder => builder.Run(app), loggerFactory, new IISServerOptions(), isHttps: true); 154app.Map("/start", builder => builder.Run(context => context.Response.WriteAsync("Done")));
IISSample (1)
Startup.cs (1)
37app.Run(async (context) =>
InMemory.FunctionalTests (2)
TestTransport\TestServer.cs (2)
82.Configure(app => { app.Run(_app); }); 132app.Run(_app);
InProcessWebSite (9)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (1)
100.Configure(builder => builder.Run(async context => { await context.Response.WriteAsync("I shouldn't work"); }))
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
207builder.Run(
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (6)
26app.Run(context => 36app.Run(context => 46app.Run(async context => 58app.Run(async context => 73app.Run(async context => 93app.Run(async context =>
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
48app.Run(async context =>
Interop.FunctionalTests (39)
H2SpecTests.cs (1)
149app.Run(async context =>
Http2WebSocketInteropTests.cs (2)
59app.Run(async context => 113app.Run(async context =>
HttpClientHttp2InteropTests.cs (35)
58.Configure(app => app.Run(context => context.Response.WriteAsync("Hello World"))); 79.Configure(app => app.Run(async context => 112.Configure(app => app.Run(async context => 160.Configure(app => app.Run(async context => 267.Configure(app => app.Run(async context => 326.Configure(app => app.Run(async context => 408.Configure(app => app.Run(async context => 524.Configure(app => app.Run(context => 554.Configure(app => app.Run(async context => 589.Configure(app => app.Run(context => 614.Configure(app => app.Run(async context => 642.Configure(app => app.Run(async context => 669.Configure(app => app.Run(async context => 705.Configure(app => app.Run(async context => 761.Configure(app => app.Run(async context => 819.Configure(app => app.Run(async context => 865.Configure(app => app.Run(async context => 910.Configure(app => app.Run(async context => 951.Configure(app => app.Run(async context => 991.Configure(app => app.Run(async context => 1033.Configure(app => app.Run(context => 1085.Configure(app => app.Run(context => 1142.Configure(app => app.Run(context => 1202.Configure(app => app.Run(async context => 1263.Configure(app => app.Run(async context => 1320.Configure(app => app.Run(context => context.Response.WriteAsync("Hello World"))); 1353.Configure(app => app.Run(context => context.Response.WriteAsync("Hello World"))); 1386.Configure(app => app.Run(context => 1420.Configure(app => app.Run(async context => 1462.Configure(app => app.Run(async context => 1498.Configure(app => app.Run(async context => 1556.Configure(app => app.Run(context => 1583.Configure(app => app.Run(context => context.Response.WriteAsync(context.Request.Path.Value))); 1618.Configure(app => app.Run(async context => 1663.Configure(app => app.Run(async context =>
HttpHelpers.cs (1)
92app.Run(requestDelegate);
JwtBearerSample (1)
Startup.cs (1)
70todoApp.Run(async context =>
Kestrel.SampleApp (1)
Startup.cs (1)
46app.Run(async context =>
LargeResponseApp (1)
Startup.cs (1)
23app.Run(async (context) =>
LocalizationSample (1)
Startup.cs (1)
32app.Run(async (context) =>
LocalizationWebsite (7)
StartupBuilderAPIs.cs (1)
30app.Run(async (context) =>
StartupContentLanguageHeader.cs (1)
34app.Run(async (context) =>
StartupCustomCulturePreserved.cs (1)
32app.Run(async (context) =>
StartupGetAllStrings.cs (1)
36app.Run(async (context) =>
StartupResourcesAtRootFolder.cs (1)
42app.Run(async (context) =>
StartupResourcesInClassLibrary.cs (1)
51app.Run(async (context) =>
StartupResourcesInFolder.cs (1)
45app.Run(async (context) =>
Microsoft.AspNetCore (1)
WebHost.cs (1)
45return StartWith(url: url, configureServices: null, app: appBuilder => appBuilder.Run(app), applicationName: startupAssemblyName);
Microsoft.AspNetCore.Authentication.Negotiate.Test (1)
NegotiateHandlerTests.cs (1)
270app.Run(context =>
Microsoft.AspNetCore.Authentication.Test (36)
CertificateTests.cs (1)
818app.Run(async (context) =>
CookieTests.cs (14)
1243app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1275app.Run(async context => 1299app.Run(context => context.SignInAsync(CookieAuthenticationDefaults.AuthenticationScheme, new ClaimsPrincipal(new ClaimsIdentity("whatever")))); 1327app.Run(context => context.SignInAsync("Cookie1", new ClaimsPrincipal(new ClaimsIdentity("whatever")))); 1355app.Map("/notlogin", signoutApp => signoutApp.Run(context => context.SignInAsync("Cookies", 1378app.Map("/login", signoutApp => signoutApp.Run(context => context.SignInAsync("Cookies", new ClaimsPrincipal(new ClaimsIdentity("whatever"))))); 1404app.Map("/notlogout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies"))); 1426app.Map("/logout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies"))); 1452app.Map("/forbid", signoutApp => signoutApp.Run(context => context.ForbidAsync("Cookies"))); 1477map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1620map.Map("/forbid", signoutApp => signoutApp.Run(context => context.ForbidAsync("Cookies"))); 1644app.Run((context) => 1667app.Run(async (context) => 1708app.Run(async context =>
FacebookTests.cs (2)
215map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 248app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" })));
JwtBearerTests.cs (1)
891app.Run(async (context) =>
JwtBearerTests_Handler.cs (1)
836app.Run(async (context) =>
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
440app.Run(async context =>
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1300app.Run(appCode);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1298app.Run(appCode);
WsFederation\WsFederationTest.cs (7)
226app.Run(context => context.ChallengeAsync()); 370mapped.Run(async context => 380subApp.Run(async context => 397subApp.Run(async context => 405subApp.Run(async context => 413subApp.Run(async context => 419app.Run(async context =>
WsFederation\WsFederationTest_Handler.cs (7)
224app.Run(context => context.ChallengeAsync()); 366mapped.Run(async context => 376subApp.Run(async context => 393subApp.Run(async context => 401subApp.Run(async context => 409subApp.Run(async context => 415app.Run(async context =>
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
301appBuilder.Run(next.Invoke);
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
102builder.Run(originalDelegate);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
23app.Run(async (context) =>
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (1)
711app.Run(handleRequest);
CookiePolicyTests.cs (6)
255app.Run(context => 294app.Run(context => 336app.Run(context => 373app.Run(context => 424app.Run(context => 536map.Run(configureSetup);
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
37app.Run(async context => 79app.Run(async context => 124app.Run(async context => 173app.Run(async context => 238app.Run(async context => 307app.Run(async context => 350app.Run(async context => 446app.Run(async context => 523app.Run(async context => 599app.Run(context =>
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\Reroute.cs (1)
27builder.Run(next);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\AcceptanceTests.cs (2)
59x.Run(static async context => 82app.Run(static async context =>
Microsoft.AspNetCore.Diagnostics.Tests (60)
DeveloperExceptionPageMiddlewareTest.cs (11)
51app.Run(context => 206app.Run(context => 241app.Run(context => 278app.Run(context => 314app.Run(httpContext => 351app.Run(context => 388app.Run(context => 424app.Run(context => 462app.Run(context => 550app.Run(context => 594app.Run(context =>
ExceptionHandlerMiddlewareTest.cs (3)
57app.Run(context => 324app.Run(context => 391app.Run(context =>
ExceptionHandlerTest.cs (30)
41innerAppBuilder.Run(async (httpContext) => 47app.Run((RequestDelegate)(async (context) => 97innerAppBuilder.Run(async (httpContext) => 103app.Run(async (httpContext) => 158innerAppBuilder.Run(async (httpContext) => 167app.Run(async (context) => 214innerAppBuilder.Run(async (httpContext) => 226app.Run((context) => 270innerAppBuilder.Run(async (httpContext) => 276app.Run(async (httpContext) => 341innerAppBuilder.Run(async (httpContext) => 348app.Run(httpContext => 410innerAppBuilder.Run(async (httpContext) => 416app.Run(async (httpContext) => 472innerAppBuilder.Run(async (httpContext) => 477app.Run(context => 578innerAppBuilder.Run(async (httpContext) => 586innerAppBuilder.Run(httpContext => 635innerAppBuilder.Run(httpContext => 679innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened.")); 718innerAppBuilder.Run(_ => throw new ApplicationException("Something bad happened.")); 747builder.Run(c => 756innerAppBuilder.Run(httpContext => 810app.Run((httpContext) => 864app.Run((httpContext) => 916app.Run((httpContext) => 974app.Run((httpContext) => 1016app.Run(context => 1086app.Run(context => 1149app.Run(context =>
StatusCodeMiddlewareTest.cs (16)
33innerAppBuilder.Run((httpContext) => 42innerAppBuilder.Run(async (httpContext) => 48app.Run((context) => 95innerAppBuilder.Run((httpContext) => 104innerAppBuilder.Run(async (httpContext) => 116app.Run((context) => 155innerAppBuilder.Run((httpContext) => 166innerAppBuilder.Run(async (httpContext) => 178app.Run((context) => 211innerAppBuilder.Run((httpContext) => 222innerAppBuilder.Run(httpContext => 233app.Run((context) => 269app.Run((context) => 303app.Run((context) => 341app.Run(_ => throw new InvalidOperationException("Invalid input provided.")); 379app.Run(_ => throw new InvalidOperationException("Invalid input provided."));
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationIntegrationTest.cs (1)
41app.Run(async context =>
Microsoft.AspNetCore.HostFiltering.Tests (6)
HostFilteringMiddlewareTests.cs (6)
63app.Run(c => 104app.Run(c => 110app.Run(c => Task.CompletedTask); 161app.Run(c => Task.CompletedTask); 213app.Run(c => throw new NotImplementedException("App")); 252app.Run(c => Task.CompletedTask);
Microsoft.AspNetCore.Hosting.Tests (4)
WebHostBuilderTests.cs (3)
95app.Run(context => 115app.Run(context => context.Response.WriteAsync("UseStartupFactoryWorks")); 851app.Run(context => context.Response.WriteAsync("Configure"));
WebHostTests.cs (1)
1099appBuilder.Run(requestDelegate);
Microsoft.AspNetCore.Hosting.TestSites (1)
StartupShutdown.cs (1)
33app.Run(context =>
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\UseExtensions.cs (2)
15/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead. 43/// If you aren't calling the next function, use <see cref="RunExtensions.Run(IApplicationBuilder, RequestDelegate)"/> instead.
Extensions\UseWhenExtensions.cs (1)
38branchBuilder.Run(main);
src\Shared\Reroute.cs (1)
27builder.Run(next);
Microsoft.AspNetCore.Http.Abstractions.Tests (14)
MapPathMiddlewareTests.cs (7)
22app.Run(Success); 32app.Run(NotImplemented); 88builder.Map(matchPath, subBuilder => subBuilder.Run(Success)); 116builder.Map(matchPath, true, subBuilder => subBuilder.Run(Success)); 147builder.Run(Success); 169builder.Run(Success); 185map.Run(NotImplemented);
MapPredicateMiddlewareTests.cs (4)
22app.Run(Success); 32app.Run(NotImplemented); 89builder.Run(Success); 104map1.Run(NotImplemented);
UseExtensionsTests.cs (2)
31builder.Run(context => 63builder.Run(context =>
UsePathBaseExtensionsTests.cs (1)
213builder.Run(context =>
Microsoft.AspNetCore.Http.Connections (2)
ConnectionEndpointRouteBuilderExtensions.cs (2)
99app.Run(c => dispatcher.ExecuteNegotiateAsync(c, options)); 111app.Run(c => dispatcher.ExecuteAsync(c, options, connectionDelegate));
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
131builder.Run(context =>
Microsoft.AspNetCore.HttpOverrides.Tests (13)
ForwardedHeadersMiddlewareTest.cs (7)
363app.Run(context => 448app.Run(context => 499app.Run(context => 550app.Run(context => 586app.Run(context => 675app.Run(context => 732app.Run(context =>
HttpMethodOverrideMiddlewareTest.cs (6)
26app.Run(context => 57app.Run(context => 87app.Run(context => 120app.Run(context => 158app.Run(context => 195app.Run(context =>
Microsoft.AspNetCore.HttpsPolicy.Tests (18)
HstsMiddlewareTests.cs (8)
53app.Run(context => 100app.Run(context => 146app.Run(context => 191app.Run(context => 246app.Run(context => 301app.Run(context => 348app.Run(context => 395app.Run(context =>
HttpsPolicyTests.cs (1)
52app.Run(context =>
HttpsRedirectionMiddlewareTests.cs (9)
39app.Run(context => 94app.Run(context => 150app.Run(context => 204app.Run(context => 250app.Run(context => 293app.Run(context => 336app.Run(context => 389app.Run(context => 431app.Run(context =>
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
63fork.Run(context => 114app.Run(context => 184fork.Run(context =>
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
34app.Run(context => 75app.Run(context => 115app.Run(context => 159app.Run(context =>
CookieRequestCultureProviderTest.cs (5)
48app.Run(context => 100app.Run(context => 149app.Run(context => 200app.Run(context => Task.CompletedTask); 260app.Run(context => Task.CompletedTask);
CustomRequestCultureProviderTest.cs (1)
45app.Run(context =>
QueryStringRequestCultureProviderTest.cs (8)
37app.Run(context => 71app.Run(context => 113app.Run(context => 154app.Run(context => 195app.Run(context => 237app.Run(context => 284app.Run(context => 332app.Run(context =>
RequestLocalizationMiddlewareTest.cs (1)
49app.Run(async context =>
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
30app.Run(context =>
Microsoft.AspNetCore.Mvc.Core (1)
Filters\MiddlewareFilterBuilder.cs (1)
62nestedAppBuilder.Run(async (httpContext) =>
Microsoft.AspNetCore.Mvc.Core.Test (4)
Filters\MiddlewareFilterTest.cs (4)
53appBuilder.Run((httpContext) => 99appBuilder.Run((httpContext) => 139appBuilder.Run((httpContext) => 186appBuilder.Run((httpContext) =>
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
183app.Run(requestDelegate);
Microsoft.AspNetCore.Owin.Tests (3)
OwinExtensionTests.cs (3)
35applicationBuilder.Run(context => 68applicationBuilder.Run(context => 102applicationBuilder.Run(context =>
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
225app.Run(async context => 294app.Run(async context => 370app.Run(async context => 468app.Run(async context => 552app.Run(async context => 709app.Run(async context =>
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
183app.Run(requestDelegate);
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
163app.Run(context => 321app.Run(context => 459app.Run(context => 520app.Run(context => 583app.Run(context => 636app.Run(async context => 682app.Run(async context => 727app.Run(async context => 786app.Run(async context => 846app.Run(async context => 916app.Run(async context => 980app.Run(async context => 1045app.Run(context => 1095app.Run(context => 1145app.Run(async context => 1195app.Run(async context => 1256app.Run(context =>
Microsoft.AspNetCore.Rewrite (1)
src\Shared\Reroute.cs (1)
27builder.Run(next);
Microsoft.AspNetCore.Rewrite.Tests (35)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (17)
27app.Run(context => context.Response.WriteAsync(context.Request.Path)); 53app.Run(context => context.Response.WriteAsync(context.Request.Path)); 79app.Run(context => context.Response.WriteAsync(context.Request.Path)); 104app.Run(context => context.Response.WriteAsync(context.Request.Path)); 129app.Run(context => context.Response.WriteAsync(context.Request.Path)); 154app.Run(context => context.Response.WriteAsync(context.Request.Path)); 179app.Run(context => context.Response.WriteAsync(context.Request.Path)); 206app.Run(context => context.Response.WriteAsync(context.Request.Path)); 237app.Run(context => context.Response.WriteAsync(context.Request.Path)); 263app.Run(context => context.Response.WriteAsync(context.Request.Path)); 289app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 315app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 342app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 370app.Run(context => context.Response.WriteAsync(context.Request.Scheme + "://" + context.Request.Host.Host + context.Request.Path + context.Request.QueryString)); 398app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 422app.Run(context => context.Response.WriteAsync( 452app.Run(context => context.Response.WriteAsync(
IISUrlRewrite\MiddleWareTests.cs (12)
37app.Run(context => context.Response.WriteAsync(context.Response.Headers.Location)); 69app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 105app.Run(context => context.Response.WriteAsync(context.Request.Path + context.Request.QueryString)); 137app.Run(context => context.Response.WriteAsync(context.Response.Headers.Location)); 276app.Run(context => context.Response.WriteAsync( 313app.Run(context => context.Response.WriteAsync( 350app.Run(context => context.Response.WriteAsync( 387app.Run(context => context.Response.WriteAsync( 421app.Run(context => context.Response.WriteAsync( 608app.Run(context => context.Response.WriteAsync(context.Request.GetEncodedUrl())); 653app.Run(context => context.Response.WriteAsync(context.Request.GetEncodedUrl())); 740app.Run(context => context.Response.WriteAsync(context.Request.GetEncodedUrl()));
MiddlewareTests.cs (6)
28app.Run(context => context.Response.WriteAsync( 58app.Run(context => context.Response.WriteAsync( 90app.Run(context => context.Response.WriteAsync( 122app.Run(context => context.Response.WriteAsync( 686app.Run(context => context.Response.WriteAsync( 713app.Run(context => context.Response.WriteAsync(
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Utilities.cs (1)
99.Configure(appBuilder => appBuilder.Run(app));
Microsoft.AspNetCore.Server.IISIntegration.Tests (12)
IISMiddlewareTests.cs (12)
38app.Run(context => 76app.Run(context => 120app.Run(context => 179app.Run(context => 224app.Run(context => 269app.Run(context => 306app.Run(context => Task.FromResult(0)); 339app.Run(context => Task.FromResult(0)); 368app.Run(context => 406app.Run(async context => 448app.Run(async context => 505app.Run(context =>
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
66app.Run(async context => 122app.Run(async context => 157app.Run(async context => 194app.Run(async context => 232app.Run(async context => 303app.Run(async context => 398app.Run(async context =>
Microsoft.AspNetCore.Session.Tests (21)
SessionTests.cs (21)
37app.Run(context => 72app.Run(context => 127app.Run(context => 173app.Run(context => 222app.Run(context => 281app.Run(context => 343app.Run(context => 390app.Run(context => 455app.Run(context => 528app.Run(context => 579app.Run(context => 611app.Run(context => 652app.Run(context => 702app.Run(async context => 754app.Run(async context => 799app.Run(async context => 853app.Run(context => 916app.Run(context => 979app.Run(async context => 1043app.Run(context => 1099app.Run(context =>
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxyingExtensions.cs (1)
74applicationBuilder.Run(async (context) =>
Microsoft.AspNetCore.StaticFiles.Tests (4)
DefaultFilesMiddlewareTests.cs (4)
70app.Run(context => context.Response.WriteAsync(context.Request.Path.Value)); 112app.Run(context => context.Response.WriteAsync(context.Request.Path.Value)); 152app.Run(context => context.Response.WriteAsync(context.Request.Path.Value)); 218app.Run(context => context.Response.WriteAsync(context.Request.Path.Value));
Microsoft.AspNetCore.TestHost.Tests (66)
ClientHandlerTests.cs (1)
701app.Run(context =>
HttpContextBuilderTests.cs (12)
82app.Run(c => 100app.Run(c => 123app.Run(async c => 150app.Run(async c => 174app.Run(async c => 196app.Run(async c => 222app.Run(c => 245app.Run(async c => 271app.Run(c => 286app.Run(async c => 316app.Run(context => 334app.Run(context =>
RequestLifetimeTests.cs (1)
106app.Run(appDelegate);
ResponseBodyTests.cs (1)
166app.Run(appDelegate);
ResponseResetTests.cs (1)
169app.Run(appDelegate);
TestClientTests.cs (26)
29var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 51var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 73var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 93var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 111var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 147builder.Configure(appBuilder => appBuilder.Run(app)); 192var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 249var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 300var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 357var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 419var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 466var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 517var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 608app.Run(appDelegate); 674app.Run(appDelegate); 725.Configure(app => app.Run(appDelegate)); 768app.Run(appDelegate); 801app.Run(appDelegate); 847var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 863var builder = new WebHostBuilder().Configure(app => app.Run(async ctx => 896app.Run((context) => 921app.Run((context) => 949var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 975var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 1002var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 1025app.Run(async c =>
TestServerTests.cs (21)
146app.Run(ctx => ctx.Response.WriteAsync( 196app.Run(context => 212app.Run(async context => 242app.Run(async context => 428app.Run(context => 449app.Run(context => 498app.Run(context => 539app.Run(context => 560app.Run(context => 577app.Run(context => 608app.Run(context => 630app.Run(context => 646app.Run(async context => 664app.Run(async context => 684app.Run(context => 729app.Run(context => 756app.Run(context => 786var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 877builder.Run(ctx => ctx.Response.WriteAsync("Startup")); 903app.Run(context => 912app.Run(context =>
WebSocketClientTests.cs (3)
25app.Run(ctx => 63app.Run(async ctx => 100app.Run(async c =>
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (3)
1445app.Run(context => 1985app.Run(c => branch(c)); 3147app.Run(context =>
WebHostTests.cs (1)
72app.Run(context =>
Microsoft.AspNetCore.WebSockets.Tests (2)
Http2WebSocketTests.cs (1)
26app.Run(httpContext =>
KestrelWebSocketHelpers.cs (1)
47builder.Run(c => app(c));
MiddlewareAnalysisSample (2)
Startup.cs (2)
36subApp.Run(context => 53throwApp.Run(context => { throw new Exception("Application Exception"); });
Mvc.RoutingWebSite (6)
Startup.cs (1)
96app.Map("/afterrouting", b => b.Run(c =>
StartupForDynamic.cs (1)
40app.Map("/afterrouting", b => b.Run(c =>
StartupForDynamicOrder.cs (1)
74app.Map("/afterrouting", b => b.Run(c =>
StartupForFallback.cs (1)
37app.Map("/afterrouting", b => b.Run(c =>
StartupRoutingDifferentBranches.cs (1)
71app.Run(c =>
StartupWithoutEndpointRouting.cs (1)
58app.Map("/afterrouting", b => b.Run(c =>
NativeIISSample (1)
Startup.cs (1)
32app.Run(async (context) =>
NegotiateAuthSample (1)
Startup.cs (1)
52app.Run(HandleRequest);
OpenIdConnectSample (1)
Startup.cs (1)
147app.Run(async context =>
PlaintextApp (1)
Startup.cs (1)
23app.Run((httpContext) =>
QueueSharing (1)
Program.cs (1)
59app.Run(async context =>
RequestDecompressionSample (1)
Startup.cs (1)
21testApp.Run(async context =>
ResponseCachingSample (1)
Startup.cs (1)
18app.Run(async (context) =>
ResponseCompressionSample (3)
Startup.cs (3)
35fileApp.Run(context => 44trickleApp.Run(async context => 59app.Run(async context =>
RewriteSample (1)
Startup.cs (1)
34app.Run(context =>
RoutingSandbox (1)
UseRouterStartup.cs (1)
29.MapMiddlewareRoute("api/middleware", (appBuilder) => appBuilder.Run(httpContext => httpContext.Response.WriteAsync("Middleware!")))
RoutingWebSite (1)
UseRouterStartup.cs (1)
29.MapMiddlewareRoute("api/middleware", (appBuilder) => appBuilder.Run(httpContext => httpContext.Response.WriteAsync("Middleware!")))
SampleStartups (6)
StartupBlockingOnStart.cs (1)
26app.Run(async (context) =>
StartupConfigureAddresses.cs (1)
19app.Run(async (context) =>
StartupExternallyControlled.cs (1)
21app.Run(async (context) =>
StartupHelloWorld.cs (1)
18app.Run(async (context) =>
StartupInjection.cs (2)
52app.Run(async (context) => 69app.Run(async (context) =>
SelfHostServer (1)
Startup.cs (1)
28app.Run(async context =>
ServerComparison.TestSites (12)
Startup.cs (2)
17subApp.Run(context => 23app.Run(ctx =>
StartupNtlmAuthentication.cs (1)
48app.Run((context) =>
StartupResponseCompression.cs (3)
26subApp.Run(context => 37subApp.Run(context => 44app.Run(context =>
StartupResponses.cs (6)
17subApp.Run(context => 26subApp.Run(async context => 36subApp.Run(async context => 45subApp.Run(context => 54subApp.Run(context => 62app.Run(context =>
SessionSample (2)
Startup.cs (2)
48subApp.Run(async context => 57app.Run(async context =>
SocialSample (5)
Startup.cs (5)
248signinApp.Run(async context => 275signinApp.Run(async context => 396signoutApp.Run(async context => 411errorApp.Run(async context => 422app.Run(async context =>
Sockets.BindTests (5)
SocketTransportOptionsTests.cs (1)
120app => app.Run(ctx => ctx.Response.WriteAsync("Hello World"))
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
108.Configure(app => { app.Run(_app); }); 131app.Run(_app);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
248app.Run(context => 1187app.Run(context =>
Sockets.FunctionalTests (13)
SocketTransportTests.cs (1)
35app.Run(context =>
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (2)
108.Configure(app => { app.Run(_app); }); 131app.Run(_app);
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
341.Configure(app => app.Run(async context =>
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (6)
86app.Run(async context => 171app.Run(async context => 545.Configure(app => app.Run(async context => 599.Configure(app => app.Run(async context => 696.Configure(app => app.Run(context => 1103app.Run(async context =>
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (2)
53app.Run(async context => 111app.Run(async context =>
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (1)
151app.Run(async context =>
StartWithIApplicationBuilderUrlApp (1)
Program.cs (1)
24app.Run(async context =>
StatusCodePagesSample (2)
Startup.cs (2)
63error.Run(async context => 79app.Run(async context =>
SystemdTestApp (1)
Startup.cs (1)
25app.Run(async context =>
Wasm.Performance.Driver (1)
BenchmarkResultsStartup.cs (1)
20app.Run(async context =>
WebTransportSampleApp (1)
Program.cs (1)
24host.Run(async (context) =>
WsFedSample (1)
Startup.cs (1)
44app.Run(async context =>