| WcfLogReceiverClientOpen Method (TimeSpan) |
Causes a communication object to transition from the created state into the opened state within a specified interval of time.
Namespace:
NLog.LogReceiverService
Assembly:
NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax public void Open(
TimeSpan timeout
)
Public Sub Open (
timeout As TimeSpan
)
Dim instance As WcfLogReceiverClient
Dim timeout As TimeSpan
instance.Open(timeout)
abstract Open :
timeout : TimeSpan -> unit
override Open :
timeout : TimeSpan -> unit
Parameters
- timeout
- Type: SystemTimeSpan
The Timespan that specifies how long the send operation has to complete before timing out.
Implements
ICommunicationObjectOpen(TimeSpan)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