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