1 write to SendingToken
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
651
SendingToken
= _sendCts.Token;
11 references to SendingToken
Microsoft.AspNetCore.Http.Connections (5)
Internal\Transports\LongPollingServerTransport.cs (2)
58
await context.Response.Body.WriteAsync(buffer, _connection?.
SendingToken
?? default);
90
else if (_connection?.
SendingToken
.IsCancellationRequested == true)
Internal\Transports\ServerSentEventsServerTransport.cs (1)
66
await ServerSentEventsMessageFormatter.WriteMessageAsync(buffer, context.Response.Body, _connection?.
SendingToken
?? default);
Internal\Transports\WebSocketsServerTransport.cs (2)
235
await socket.SendAsync(buffer, webSocketMessageType, _connection.
SendingToken
);
242
catch (OperationCanceledException ex) when (ex.CancellationToken == _connection.
SendingToken
)
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (6)
1302
Assert.False(connection.
SendingToken
.IsCancellationRequested);
1306
Assert.True(connection.
SendingToken
.IsCancellationRequested);
1341
Assert.False(connection.
SendingToken
.IsCancellationRequested);
1345
Assert.True(connection.
SendingToken
.IsCancellationRequested);
1385
Assert.False(connection.
SendingToken
.IsCancellationRequested);
1389
Assert.True(connection.
SendingToken
.IsCancellationRequested);