11 references to CloseAsync
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicConnectionContext.cs (2)
60
_closeTask ??= _connection.
CloseAsync
(errorCode: _context.Options.DefaultCloseErrorCode).AsTask();
88
_closeTask = _connection.
CloseAsync
(errorCode: resolvedErrorCode).AsTask();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
QuicConnectionContextTests.cs (2)
135
await clientConnection.
CloseAsync
(256);
298
await quicConnection.
CloseAsync
((long)Http3ErrorCode.NoError).DefaultTimeout();
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (2)
141
_connectionClosedTask ??= _connection.
CloseAsync
((long)Http3ErrorCode.NoError).AsTask();
379
_connectionClosedTask = _connection.
CloseAsync
((long)connectionResetErrorCode).AsTask();
System.Net.Quic (5)
System\Net\Quic\QuicConnection.cs (3)
594
/// Connection close is not graceful in regards to its streams, i.e.: calling <see cref="
CloseAsync
(long, CancellationToken)"/> will immediately close all streams associated with this connection.
598
/// If <see cref="
CloseAsync
(long, CancellationToken)"/> is not called before <see cref="DisposeAsync">disposing</see> the connection,
809
/// If not closed explicitly by <see cref="
CloseAsync
(long, CancellationToken)" />, closes the connection with the <see cref="QuicConnectionOptions.DefaultCloseErrorCode"/>.
System\Net\Quic\QuicConnectionOptions.cs (2)
106
/// Error code used for <see cref="QuicConnection.
CloseAsync
(long, Threading.CancellationToken)"/> when the connection gets disposed.
110
/// To use different close error code, call <see cref="QuicConnection.
CloseAsync
(long, Threading.CancellationToken)"/> explicitly before disposing.