1 write to ConnectionAborted
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
81
ConnectionAborted
= _connectionAbortedTokenSource.Token;
24 references to ConnectionAborted
Microsoft.AspNetCore.SignalR.Core (6)
DefaultHubLifetimeManager.cs (3)
58
if (connection.
ConnectionAborted
.IsCancellationRequested)
351
connection.
ConnectionAborted
, out var linkedToken);
375
if (connection.
ConnectionAborted
.IsCancellationRequested)
Internal\DefaultHubCallerContext.cs (1)
37
public override CancellationToken ConnectionAborted => _connection.
ConnectionAborted
;
Internal\DefaultHubDispatcher.cs (2)
516
streamCts ??= CancellationTokenSource.CreateLinkedTokenSource(connection.
ConnectionAborted
);
741
cts = CancellationTokenSource.CreateLinkedTokenSource(connection.
ConnectionAborted
);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
Internal\RedisSubscriptionManager.cs (1)
21
if (connection.
ConnectionAborted
.IsCancellationRequested)
RedisHubLifetimeManager.cs (3)
391
connection?.
ConnectionAborted
?? default, out var linkedToken);
428
if (connection?.
ConnectionAborted
.IsCancellationRequested == true)
570
tokenRegistration = connection.
ConnectionAborted
.UnsafeRegister(_ =>
Microsoft.AspNetCore.SignalR.Tests (14)
DefaultHubLifetimeManagerTests.cs (14)
44
connection2.
ConnectionAborted
.Register(t =>
49
Assert.False(connection1.
ConnectionAborted
.IsCancellationRequested);
70
connection2.
ConnectionAborted
.Register(t =>
75
Assert.False(connection1.
ConnectionAborted
.IsCancellationRequested);
94
connection1.
ConnectionAborted
.Register(t =>
116
connection1.
ConnectionAborted
.Register(t =>
139
connection1.
ConnectionAborted
.Register(t =>
166
connection2.
ConnectionAborted
.Register(t =>
171
Assert.False(connection1.
ConnectionAborted
.IsCancellationRequested);
191
connection1.
ConnectionAborted
.Register(t =>
220
connection2.
ConnectionAborted
.Register(t =>
225
Assert.False(connection1.
ConnectionAborted
.IsCancellationRequested);
250
connection2.
ConnectionAborted
.Register(t =>
255
Assert.False(connection1.
ConnectionAborted
.IsCancellationRequested);