Initializes a new instance of the TimeoutTimer class.
public TimeoutTimer()
Creates an already timed out timer.
Initializes a new instance of the TimeoutTimer class.
public TimeoutTimer(int millisecondsUntilTimeout)
| parameter | description |
|---|---|
| millisecondsUntilTimeout | The timeout in milliseconds. |
Use int.MaxValue (or Timeout.Infinite) for a timer that never times out.
Initializes a new instance of the TimeoutTimer class.
public TimeoutTimer(TimeSpan timeSpanUntilTimeout)
| parameter | description |
|---|---|
| timeSpanUntilTimeout | The time span for the timeout. |
Use at least int.MaxValue (or Timeout.Infinite) milliseconds for a timer that never times out.