C# Class WinRTXamlToolkit.Tools.TimeoutCheck

Allows to mark a specific async block as one that can time out.
Inheritance: IDisposable
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( System.Boolean disposing ) : void

Disposes this instance.

Private Methods

Méthode Description
OnTimeout ( object sender, object o ) : void

Method Details

Dispose() public méthode

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

Dispose() protected méthode

Disposes this instance.
protected Dispose ( System.Boolean disposing ) : void
disposing System.Boolean The disposing.
Résultat void

Start() public méthode

Starts a timeout check.
public Start ( ) : void
Résultat void

Stop() public méthode

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

TimeoutCheck() public méthode

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.
Résultat System