MessageSession.OnBeginOpen(TimeSpan, AsyncCallback, Object) Method

Definition

Executes upon calling the OnOpen operation of the message receiver.

protected override IAsyncResult OnBeginOpen (TimeSpan timeout, AsyncCallback callback, object state);
override this.OnBeginOpen : TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected Overrides Function OnBeginOpen (timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

timeout
System.TimeSpan

The time span interval the operation waits before it times out.

callback
System.AsyncCallback

An System.AsyncCallback delegate that references the method to invoke when the operation is complete.

state
System.Object

A user-defined object that contains state information about the asynchronous operation.

Returns

System.IAsyncResult

An System.IAsyncResult that references the asynchronous operation to open a communication object for the message session.

Applies to