Method WaitForFail
WaitForFail(TimeSpan)
Asynchronously waits for the connection to close before continuing execution with an maximum keep alive timeout. This method is released when either the client or the server reaches an sending failure.
public void WaitForFail(TimeSpan maximumIdleTolerance)
Parameters
maximumIdleTolerance
TimeSpanThe maximum timeout interval for an idle connection to automatically release this method.