Class Timeout
public class Timeout
- Inheritance
-
Timeout
Constructors
Timeout(IDateTimeProvider, Action<ConnectionTimeoutException>)
public Timeout(IDateTimeProvider dateTimeProvider, Action<ConnectionTimeoutException> onTimeout)
Parameters
dateTimeProvider
IDateTimeProvideronTimeout
Action<ConnectionTimeoutException>
Methods
Check(bool)
public void Check(bool reset)
Parameters
reset
bool
SetTimeout(in TimeSpan)
public void SetTimeout(in TimeSpan newTimeout)
Parameters
newTimeout
TimeSpan