1 override of OnStarting
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
127public override void OnStarting(Func<object, Task> callback, object state)
28 references to OnStarting
InMemory.FunctionalTests (12)
Http2\Http2StreamTests.cs (1)
1519ex = Assert.Throws<InvalidOperationException>(() => context.Response.OnStarting(_ => Task.CompletedTask, null));
ResponseTests.cs (11)
83ex = Assert.Throws<InvalidOperationException>(() => context.Response.OnStarting(_ => Task.CompletedTask, null)); 117ex = Assert.Throws<InvalidOperationException>(() => context.Response.OnStarting(_ => Task.CompletedTask, null)); 2427response.OnStarting(_ => 2482response.OnStarting(_ => 2487response.OnStarting(_ => 2536response.OnStarting(state1 => 2538response.OnStarting(state2 => 2683response.OnStarting(_ => 2728response.OnStarting(_ => 3323context.Response.OnStarting(_ => 3329context.Response.OnStarting(_ =>
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
188context.Response.OnStarting(OnResponseStartingDelegate, Tuple.Create(this, context, corsResult));
Microsoft.AspNetCore.Diagnostics (1)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (1)
169context.Response.OnStarting(_clearCacheHeadersDelegate, context.Response);
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Latency\AddServerTimingHeaderMiddleware.cs (1)
33context.Response.OnStarting(static ctx =>
Latency\CaptureResponseTimeMiddleware.cs (1)
39context.Response.OnStarting(l =>
Latency\RequestLatencyTelemetryMiddleware.cs (1)
63context.Response.OnStarting(ctx =>
Microsoft.AspNetCore.Http.Abstractions (1)
HttpResponse.cs (1)
103public virtual void OnStarting(Func<Task> callback) => OnStarting(_callbackDelegate, callback);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataFilter.cs (1)
44context.HttpContext.Response.OnStarting(
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
OpaqueUpgradeTests.cs (1)
167httpContext.Response.OnStarting(_ =>
ResponseBodyTests.cs (3)
323httpContext.Response.OnStarting(state => 351httpContext.Response.OnStarting(state => 379httpContext.Response.OnStarting(state =>
ResponseSendFileTests.cs (1)
284httpContext.Response.OnStarting(state =>
ResponseTests.cs (3)
135httpContext.Response.OnStarting(state => 165httpContext.Response.OnStarting(state => 194httpContext.Response.OnStarting(state =>
Microsoft.AspNetCore.Session (1)
SessionMiddleware.cs (1)
126context.Response.OnStarting(OnStartingCallback, state: this);