Redigera

Dela via


ReceiveContext.OnBeginAbandon Method

Definition

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

Overloads

OnBeginAbandon(TimeSpan, AsyncCallback, Object)

Called when the state machine is transitioning to the abandoned state asynchronously with the specified timeout value, callback, and state data.

OnBeginAbandon(Exception, TimeSpan, AsyncCallback, Object)

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

OnBeginAbandon(TimeSpan, AsyncCallback, Object)

Called when the state machine is transitioning to the abandoned state asynchronously with the specified timeout value, callback, and state data.

protected:
 abstract IAsyncResult ^ OnBeginAbandon(TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected abstract IAsyncResult OnBeginAbandon (TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAbandon : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginAbandon (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

timeout
TimeSpan

The timeout for the abandon operation to complete.

callback
AsyncCallback

The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

The user defined state data.

Returns

A IAsyncResult that references the asynchronous operation.

Applies to

OnBeginAbandon(Exception, TimeSpan, AsyncCallback, Object)

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

protected:
 virtual IAsyncResult ^ OnBeginAbandon(Exception ^ exception, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
protected virtual IAsyncResult OnBeginAbandon (Exception exception, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAbandon : Exception * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.OnBeginAbandon : Exception * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overridable Function OnBeginAbandon (exception As Exception, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

exception
Exception

An exception that contains the reason for the abandon operation.

timeout
TimeSpan

The timeout for the abandon operation to complete.

callback
AsyncCallback

The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

The user-defined state data.

Returns

A IAsyncResult that references the asynchronous operation.

Applies to