9 references to TrySetException
System.Net.Quic (9)
System\Net\Quic\Internal\ValueTaskSource.cs (2)
39
/// Returns <c>true</c> is this task source was completed, i.e. <see cref="TrySetResult"/> or <see cref="
TrySetException
(Exception)"/> was called.
70
thisRef.
TrySetException
(new OperationCanceledException(cancellationToken));
System\Net\Quic\QuicConnection.cs (2)
660
_connectedTcs.
TrySetException
(exception);
680
_connectedTcs.
TrySetException
(exception);
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (1)
141
_connection._connectedTcs.
TrySetException
(ex);
System\Net\Quic\QuicStream.cs (4)
266
_startedTcs.
TrySetException
(ThrowHelper.GetExceptionForMsQuicStatus(status));
554
_startedTcs.
TrySetException
(exception);
641
_startedTcs.
TrySetException
(exception);
645
_startedTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException());