11 references to TrySetException
System.Net.Quic (11)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
55
/// Returns <c>true</c> if this task source has entered its final state, i.e. <see cref="TrySetResult(bool)"/> or <see cref="
TrySetException
(Exception)"/>
System\Net\Quic\QuicStream.cs (10)
470
_sendTcs.
TrySetException
(exception);
527
_receiveTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_reading_aborted));
535
_sendTcs.
TrySetException
(_sendException);
625
_sendTcs.
TrySetException
(exception);
644
_receiveTcs.
TrySetException
(ThrowHelper.GetStreamAbortedException((long)data.ErrorCode));
649
_sendTcs.
TrySetException
(ThrowHelper.GetStreamAbortedException((long)data.ErrorCode));
679
_receiveTcs.
TrySetException
(exception);
680
_sendTcs.
TrySetException
(exception);
809
_receiveTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_reading_aborted));
813
_sendTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_writing_aborted));