C# Class WinRTXamlToolkit.Tools.TimeoutCheck

Allows to mark a specific async block as one that can time out.
Inheritance: IDisposable
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Start ( ) : void

Starts a timeout check.

Stop ( ) : void

Stops the timeout check.

Typically called when an awaited operation completes before the timeout.

TimeoutCheck ( object subject, int timeoutInMilliseconds = 1000, bool autoStart = true ) : System

Initializes a new instance of the TimeoutCheck class.

Protected Methods

Method Description
Dispose ( System.Boolean disposing ) : void

Disposes this instance.

Private Methods

Method Description
OnTimeout ( object sender, object o ) : void

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Disposes this instance.
protected Dispose ( System.Boolean disposing ) : void
disposing System.Boolean The disposing.
return void

Start() public method

Starts a timeout check.
public Start ( ) : void
return void

Stop() public method

Stops the timeout check.
Typically called when an awaited operation completes before the timeout.
public Stop ( ) : void
return void

TimeoutCheck() public method

Initializes a new instance of the TimeoutCheck class.
public TimeoutCheck ( object subject, int timeoutInMilliseconds = 1000, bool autoStart = true ) : System
subject object The subject.
timeoutInMilliseconds int The timeout in milliseconds.
autoStart bool if set to true - timeout check will start automatically.
return System