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