Click or drag to resize

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: 6.0.2+1fe4e7c0107b475330933905458bc9d6eb3eca8e
Syntax
public void Open(
	TimeSpan timeout
)

Parameters

timeout
Type: SystemTimeSpan
The Timespan that specifies how long the send operation has to complete before timing out.

Implements

ICommunicationObjectOpen(TimeSpan)
Exceptions
ExceptionCondition
CommunicationExceptionThe ICommunicationObject was unable to be opened and has entered the Faulted state.
TimeoutExceptionThe specified timeout elapsed before the ICommunicationObject was able to enter the Opened state and has entered the Faulted state.
See Also