| WcfLogReceiverClientBeginClose Method (AsyncCallback, Object) |
Begins an asynchronous operation to close a communication object.
Namespace:
NLog.LogReceiverService
Assembly:
NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax public IAsyncResult BeginClose(
AsyncCallback callback,
Object state
)
Public Function BeginClose (
callback As AsyncCallback,
state As Object
) As IAsyncResult
Dim instance As WcfLogReceiverClient
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginClose(callback,
state)
abstract BeginClose :
callback : AsyncCallback *
state : Object -> IAsyncResult
override BeginClose :
callback : AsyncCallback *
state : Object -> IAsyncResult
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 Exception | Condition |
---|
CommunicationObjectFaultedException | BeginClose was called on an object in the Faulted state. |
TimeoutException | The default timeout elapsed before the ICommunicationObject was able to close gracefully. |
See Also