11 references to TrySetException
System.Net.Quic (11)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
55
/// Returns <c>true</c> is this task source has entered its final state, i.e. <see cref="TrySetResult(bool)"/> or <see cref="
TrySetException
(Exception, bool)"/>
System\Net\Quic\QuicStream.cs (10)
433
_sendTcs.
TrySetException
(exception, final: true);
490
_receiveTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_reading_aborted), final: true);
498
_sendTcs.
TrySetException
(_sendException, final: true);
588
_sendTcs.
TrySetException
(exception, final: true);
607
_receiveTcs.
TrySetException
(ThrowHelper.GetStreamAbortedException((long)data.ErrorCode), final: true);
612
_sendTcs.
TrySetException
(ThrowHelper.GetStreamAbortedException((long)data.ErrorCode), final: true);
642
_receiveTcs.
TrySetException
(exception, final: true);
643
_sendTcs.
TrySetException
(exception, final: true);
769
_receiveTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_reading_aborted), final: true);
773
_sendTcs.
TrySetException
(ThrowHelper.GetOperationAbortedException(SR.net_quic_writing_aborted), final: true);