Click or drag to resize

WcfLogReceiverClientClose Method (TimeSpan)

Causes a communication object to transition from its current state into the closed state.

Namespace:  NLog.LogReceiverService
Assembly:  NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.2+0aa8a85babd1d0accd72c78d26557909e04224a2
Syntax
public void Close(
	TimeSpan timeout
)

Parameters

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

Implements

ICommunicationObjectClose(TimeSpan)
Exceptions
ExceptionCondition
CommunicationObjectFaultedExceptionClose was called on an object in the Faulted state.
TimeoutExceptionThe timeout elapsed before the ICommunicationObject was able to close gracefully.
See Also