Base:
property
RequestAborted
Microsoft.AspNetCore.Http.HttpContext.RequestAborted
13 writes to RequestAborted
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
460context.RequestAborted = cts.Token; 523context.RequestAborted = cts.Token; 3116context.RequestAborted = cts.Token;
Microsoft.AspNetCore.Http.Extensions.Tests (7)
HttpResponseJsonExtensionsTests.cs (4)
317context.RequestAborted = cts.Token; 351context.RequestAborted = cts.Token; 384context.RequestAborted = new CancellationToken(canceled: true); 418context.RequestAborted = new CancellationToken(canceled: true);
RequestDelegateFactoryTests.cs (1)
1226httpContext.RequestAborted = cts.Token;
SendFileResponseExtensionsTests.cs (2)
78context.RequestAborted = new CancellationToken(canceled: true); 94context.RequestAborted = token;
Microsoft.AspNetCore.Http.Microbenchmarks (1)
RequestTimeoutsMiddlewareBenchmark.cs (1)
121context.RequestAborted = cts.Token;
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
149context.RequestAborted = new CancellationToken(true);
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
130httpContext.RequestAborted = new CancellationToken(canceled: true);
50 references to RequestAborted
Microsoft.AspNetCore.Http.Connections.Tests (9)
LongPollingTests.cs (4)
34await poll.ProcessRequestAsync(context, context.RequestAborted).DefaultTimeout(); 52using (var cts = CancellationTokenSource.CreateLinkedTokenSource(timeoutToken, context.RequestAborted)) 78await poll.ProcessRequestAsync(context, context.RequestAborted).DefaultTimeout(); 104await poll.ProcessRequestAsync(context, context.RequestAborted).DefaultTimeout();
ServerSentEventsTests.cs (5)
32await sse.ProcessRequestAsync(context, context.RequestAborted); 55await sse.ProcessRequestAsync(context, context.RequestAborted); 74var task = sse.ProcessRequestAsync(context, context.RequestAborted); 96var task = sse.ProcessRequestAsync(context, context.RequestAborted); 128await sse.ProcessRequestAsync(context, context.RequestAborted);
Microsoft.AspNetCore.Http.Extensions.Tests (12)
RequestDelegateFactoryTests.cs (12)
766Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1233Assert.Equal(httpContext.RequestAborted, cancellationTokenArgument); 1590Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1675Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1759Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1789Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1819Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1849Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1876Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1916Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1945Assert.False(httpContext.RequestAborted.IsCancellationRequested); 1978Assert.False(httpContext.RequestAborted.IsCancellationRequested);
Microsoft.AspNetCore.Http.Tests (29)
Timeouts\RequestTimeoutsMiddlewareTests.cs (29)
18var originalToken = context.RequestAborted; 22Assert.Equal(originalToken, context.RequestAborted); 31var originalToken = context.RequestAborted; 38Assert.Equal(originalToken, context.RequestAborted); 47var originalToken = context.RequestAborted; 54Assert.Equal(originalToken, context.RequestAborted); 63var originalToken = context.RequestAborted; 69Assert.Equal(originalToken, context.RequestAborted); 78var originalToken = context.RequestAborted; 84Assert.Equal(originalToken, context.RequestAborted); 93originalCancellationToken: context.RequestAborted, 97var originalToken = context.RequestAborted; 101Assert.Equal(originalToken, context.RequestAborted); 110var originalToken = context.RequestAborted; 117Assert.Equal(originalToken, context.RequestAborted); 126var originalToken = context.RequestAborted; 133Assert.Equal(originalToken, context.RequestAborted); 142var originalToken = context.RequestAborted; 149Assert.Equal(originalToken, context.RequestAborted); 156var originalToken = context.RequestAborted; 170Assert.Equal(originalToken, context.RequestAborted); 193var originalToken = context.RequestAborted; 199Assert.Equal(originalToken, context.RequestAborted); 209var originalToken = context.RequestAborted; 216Assert.Equal(originalToken, context.RequestAborted); 226var originalToken = context.RequestAborted; 236Assert.Equal(originalToken, context.RequestAborted); 246var originalToken = context.RequestAborted; 253Assert.Equal(originalToken, context.RequestAborted);