12 overrides of ConnectionClosed
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
62public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
90public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
209public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Core (3)
HttpsConfigurationService.cs (1)
221public override CancellationToken ConnectionClosed
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
74public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; } 111public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
62public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
62public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
62public override CancellationToken ConnectionClosed { get; set; }
src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (1)
49public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.cs (1)
62public override CancellationToken ConnectionClosed { get; set; }
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1180public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
5 writes to ConnectionClosed
Microsoft.AspNetCore.Server.Kestrel.Core (4)
HttpsConfigurationService.cs (1)
224set => _inner.ConnectionClosed = value;
Internal\WebTransport\WebTransportStream.cs (1)
74ConnectionClosed = _connectionClosedRegistration.Token;
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
74public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; } 111public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1180public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
24 references to ConnectionClosed
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1702context.ConnectionClosed.Register(() => connectionClosedTcs.SetResult());
Microsoft.AspNetCore.Http.Connections.Tests (8)
HttpConnectionDispatcherTests.cs (8)
2806await connection.ConnectionClosed.WaitForCancellationAsync().DefaultTimeout(); 2835await connection.ConnectionClosed.WaitForCancellationAsync().DefaultTimeout(); 2865await connection.ConnectionClosed.WaitForCancellationAsync().DefaultTimeout(); 2894await connection.ConnectionClosed.WaitForCancellationAsync().DefaultTimeout(); 2941connection.ConnectionClosed.Register(() => tcs.SetResult()); 3133await connection.ConnectionClosed.WaitForCancellationAsync().DefaultTimeout(); 3994connection.ConnectionClosed.Register(() => 4013var res = await connection.Transport.Input.ReadAsync(connection.ConnectionClosed);
Microsoft.AspNetCore.Server.Kestrel.Core (6)
HttpsConfigurationService.cs (1)
223get => _inner.ConnectionClosed;
Internal\HttpConnection.cs (1)
117using var closedRegistration = _context.ConnectionContext.ConnectionClosed.Register(state => ((HttpConnection)state!).OnConnectionClosed(), this);
Internal\WebTransport\WebTransportSession.cs (1)
55_connectionClosedRegistration = connection._multiplexedContext.ConnectionClosed.Register(static state =>
Internal\WebTransport\WebTransportStream.cs (1)
64_connectionClosedRegistration = context.StreamContext.ConnectionClosed.Register(static state =>
Middleware\LoggingMultiplexedConnectionMiddleware.cs (2)
74public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; } 111public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (5)
QuicConnectionContextTests.cs (1)
131serverConnection.ConnectionClosed.Register(() => connectionClosedTcs.SetResult());
QuicConnectionListenerTests.cs (4)
57Assert.False(serverConnection.ConnectionClosed.IsCancellationRequested); 62Assert.False(serverConnection.ConnectionClosed.IsCancellationRequested); 78Assert.False(serverConnection1.ConnectionClosed.IsCancellationRequested); 103Assert.False(serverConnection2.ConnectionClosed.IsCancellationRequested);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
1180public override CancellationToken ConnectionClosed { get => _inner.ConnectionClosed; set => _inner.ConnectionClosed = value; }
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
82_closedRegistration = connectionContext.ConnectionClosed.Register(static (state) => ((HubConnectionContext)state!).Abort(), this);
WebTransportInteractiveSampleApp (2)
Program.cs (2)
99while (!stream.ConnectionClosed.IsCancellationRequested) 120while (!stream.ConnectionClosed.IsCancellationRequested)