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