ReceiveContext.OnAbandon Method

Definition

Called when the state machine is transitioning to the abandoned state.

Overloads

OnAbandon(Exception, TimeSpan)

Called when the state machine is transitioning to the abandoned state with the specified exception and timeout value.

OnAbandon(TimeSpan)

Called when the state machine is transitioning to the abandoned state with the specified timeout value.

OnAbandon(Exception, TimeSpan)

Called when the state machine is transitioning to the abandoned state with the specified exception and timeout value.

C#
protected virtual void OnAbandon(Exception exception, TimeSpan timeout);

Parameters

exception
Exception

An exception that contains the reason for the abandon operation.

timeout
TimeSpan

The timeout for the abandon operation to complete.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OnAbandon(TimeSpan)

Called when the state machine is transitioning to the abandoned state with the specified timeout value.

C#
protected abstract void OnAbandon(TimeSpan timeout);

Parameters

timeout
TimeSpan

The timeout for the abandon operation to complete.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1