| 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.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax public void Close(
TimeSpan timeout
)
Public Sub Close (
timeout As TimeSpan
)
Dim instance As WcfLogReceiverClient
Dim timeout As TimeSpan
instance.Close(timeout)
abstract Close :
timeout : TimeSpan -> unit
override Close :
timeout : TimeSpan -> unit
Parameters
- timeout
- Type: SystemTimeSpan
The Timespan that specifies how long the send operation has to complete before timing out.
Implements
ICommunicationObjectClose(TimeSpan)Exceptions Exception | Condition |
---|
CommunicationObjectFaultedException | Close was called on an object in the Faulted state. |
TimeoutException | The timeout elapsed before the ICommunicationObject was able to close gracefully. |
See Also