1 override of Abort
Microsoft.AspNetCore.Http (1)
DefaultHttpContext.cs (1)
227public override void Abort()
60 references to Abort
HttpStress (2)
Program.cs (2)
460context.Abort(); 467context.Abort();
IIS.Tests (6)
ResponseAbortTests.cs (6)
25ctx.Abort(); 47ctx.Abort(); 74ctx.Abort(); 104ctx.Abort(); 132ctx.Abort(); 155ctx.Abort();
InMemory.FunctionalTests (22)
Http2\Http2ConnectionTests.cs (1)
1992context.Abort();
Http2\Http2StreamTests.cs (8)
3346context.Abort(); 3388context.Abort(); 3426context.Abort(); 3458context.Abort(); 4298httpContext.Abort(); 5461context.Abort(); 5543context.Abort(); 5899httpContext.Abort();
Http2\Http2TestBase.cs (1)
380context.Abort();
Http3\Http3StreamTests.cs (4)
765context.Abort(); 1724context.Abort(); 1785context.Abort(); 2994context.Abort();
HttpsTests.cs (1)
281httpContext.Abort();
KestrelMetricsTests.cs (2)
411c.Abort(); 776context.Abort();
ResponseTests.cs (5)
221context.Abort(); 299context.Abort(); 314context.Abort(); 2799httpContext.Abort(); 2824httpContext.Abort();
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
166context.Abort();
Interop.FunctionalTests (3)
Http3\Http3RequestTests.cs (3)
544context.Abort(); 607context.Abort(); 662context.Abort();
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\HttpContextStreamWriter.cs (1)
51static (state) => ((JsonTranscodingServerCallContext)state!).HttpContext.Abort(),
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
208using (cancellationToken.Register((state) => ((HttpContext)state!).Abort(), _request.HttpContext))
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
217HttpContext?.Abort();
Microsoft.AspNetCore.Http.Results (2)
src\Shared\ResultsHelpers\FileResultHelper.cs (2)
51context.Abort(); 86context.Abort();
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ResultsHelpers\FileResultHelper.cs (2)
51context.Abort(); 86context.Abort();
Microsoft.AspNetCore.Mvc.IntegrationTests (3)
CancellationTokenModelBinderIntegrationTest.cs (3)
47testContext.HttpContext.Abort(); 83testContext.HttpContext.Abort(); 121testContext.HttpContext.Abort();
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
193context.HttpContext.Abort();
Microsoft.AspNetCore.Rewrite (1)
UrlActions\AbortAction.cs (1)
12context.HttpContext.Abort();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Http3Tests.cs (1)
246httpContext.Abort();
ServerTests.cs (1)
322httpContext.Abort();
Microsoft.AspNetCore.TestHost.Tests (6)
HttpContextBuilderTests.cs (1)
337context.Abort();
RequestLifetimeTests.cs (4)
22httpContext.Abort(); 39httpContext.Abort(); 58httpContext.Abort(); 81httpContext.Abort();
TestClientTests.cs (1)
511ctx.Abort();
Microsoft.AspNetCore.WebSockets (2)
AbortStream.cs (2)
11/// so that we can call <see cref="HttpContext.Abort"/> when the stream is disposed and the WebSocket is in the <see cref="WebSocketState.Aborted"/> state. 125_httpContext.Abort();
Sockets.FunctionalTests (4)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (4)
648context.Abort(); 698context.Abort(); 813context.Abort(); 991context.Abort();