51 references to OnStarting
CustomAuthorizationFailureResponse (1)
Authorization\SampleAuthorizationMiddlewareResultHandler.cs (1)
58httpContext.Response.OnStarting(() => httpContext.Response.BodyWriter.WriteAsync(Encoding.UTF8.GetBytes(message)).AsTask());
InMemory.FunctionalTests (41)
Http2\Http2StreamTests.cs (14)
4743context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 4796context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 4862context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 4917context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 4983context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5039context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5153context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5232context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5306context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5377context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5447context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5529context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5611context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 5695context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; });
Http3\Http3StreamTests.cs (14)
1139context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1185context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1237context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1285context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1338context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1387context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1480context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1540context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1595context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1653context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1710context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1771context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1833context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; }); 1898context.Response.OnStarting(() => { startingTcs.SetResult(); return Task.CompletedTask; });
RequestTests.cs (6)
324context.Response.OnStarting(() => 361context.Response.OnStarting(() => 396context.Response.OnStarting(async () => 428context.Response.OnStarting(async () => 469context.Response.OnStarting(async () => 508context.Response.OnStarting(() =>
ResponseTests.cs (7)
43context.Response.OnStarting(() => Task.Run(() => onStartingCalled = true)); 1713httpContext.Response.OnStarting(() => 1755httpContext.Response.OnStarting(() => 1797httpContext.Response.OnStarting(() => 1842httpContext.Response.OnStarting(() => 1885httpContext.Response.OnStarting(() => 1925httpContext.Response.OnStarting(() =>
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (1)
80context.Response.OnStarting(() =>
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
72Context.Response.OnStarting(FinishResponseAsync);
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
192Response.OnStarting(() =>
Microsoft.AspNetCore.Components.Endpoints (1)
RazorComponentEndpointInvoker.cs (1)
69context.Response.OnStarting(() =>
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ResponseBodyTests.cs (2)
20httpContext.Response.OnStarting(() => 49httpContext.Response.OnStarting(() =>
Microsoft.AspNetCore.TestHost.Tests (3)
ClientHandlerTests.cs (3)
545context.Response.OnStarting(() => 561context.Response.OnStarting(() => 577context.Response.OnStarting(() =>