Click or drag to resize

WcfLogReceiverClientBeginClose Method (AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

Namespace:  NLog.LogReceiverService
Assembly:  NLog.Wcf (in NLog.Wcf.dll) Version: 6.0.2+1fe4e7c0107b475330933905458bc9d6eb3eca8e
Syntax
public IAsyncResult BeginClose(
	AsyncCallback callback,
	Object state
)

Parameters

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

Return Value

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

Implements

ICommunicationObjectBeginClose(AsyncCallback, Object)
Exceptions
ExceptionCondition
CommunicationObjectFaultedExceptionBeginClose was called on an object in the Faulted state.
TimeoutExceptionThe default timeout elapsed before the ICommunicationObject was able to close gracefully.
See Also