Click or drag to resize

WcfLogReceiverClientBeginOpen Method (AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.

Namespace:  NLog.LogReceiverService
Assembly:  NLog.Wcf (in NLog.Wcf.dll) Version: 6.1.4+f70e1999c43efb211479bd8fa9304ca21558f8df
Syntax
public IAsyncResult BeginOpen(
	AsyncCallback callback,
	Object state
)

Parameters

callback
Type: SystemAsyncCallback
The AsyncCallback delegate that receives notification of the completion of the asynchronous open operation.
state
Type: SystemObject
An object, specified by the application, that contains state information associated with the asynchronous open operation.

Return Value

Type: IAsyncResult
The IAsyncResult that references the asynchronous open operation.

Implements

ICommunicationObjectBeginOpen(AsyncCallback, Object)
Exceptions
ExceptionCondition
CommunicationExceptionThe ICommunicationObject was unable to be opened and has entered the Faulted state.
TimeoutExceptionThe default open timeout elapsed before the ICommunicationObject was able to enter the Opened state and has entered the Faulted state.
See Also