| WcfLogReceiverClientBeginOpen Method (TimeSpan, AsyncCallback, Object) |
Begins an asynchronous operation to open a communication object within a specified interval of time.
Namespace:
NLog.LogReceiverService
Assembly:
NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax public IAsyncResult BeginOpen(
TimeSpan timeout,
AsyncCallback callback,
Object state
)
Public Function BeginOpen (
timeout As TimeSpan,
callback As AsyncCallback,
state As Object
) As IAsyncResult
Dim instance As WcfLogReceiverClient
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginOpen(timeout,
callback, state)
abstract BeginOpen :
timeout : TimeSpan *
callback : AsyncCallback *
state : Object -> IAsyncResult
override BeginOpen :
timeout : TimeSpan *
callback : AsyncCallback *
state : Object -> IAsyncResult
Parameters
- timeout
- Type: SystemTimeSpan
The Timespan that specifies how long the send operation has to complete before timing out. - 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(TimeSpan, AsyncCallback, Object)Exceptions Exception | Condition |
---|
CommunicationException | The ICommunicationObject was unable to be opened and has entered the Faulted state. |
TimeoutException | The specified timeout elapsed before the ICommunicationObject was able to enter the Opened state and has entered the Faulted state. |
See Also