C# 클래스 WinRTXamlToolkit.Tools.TimeoutCheck

Allows to mark a specific async block as one that can time out.
상속: IDisposable
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Dispose ( System.Boolean disposing ) : void

Disposes this instance.

비공개 메소드들

메소드 설명
OnTimeout ( object sender, object o ) : void

메소드 상세

Dispose() 공개 메소드

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

Dispose() 보호된 메소드

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

Start() 공개 메소드

Starts a timeout check.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

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

TimeoutCheck() 공개 메소드

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.
리턴 System