C# 클래스 WebApplications.Utilities.Threading.TimedTokenSource

상속: ICancelableTokenSource
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
Cancel ( ) : void

Communicates a request for cancellation.

Cancel ( bool throwOnFirstException ) : void

Communicates a request for cancellation, and specifies whether remaining callbacks and cancelable operations should be processed.

CancelAfter ( System.Duration delay ) : void

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified duration.

CancelAfter ( System.TimeSpan delay ) : void

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified time span.

CancelAfter ( int millisecondsDelay ) : void

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified number of milliseconds.

Dispose ( ) : void

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

TimedTokenSource ( System.Duration timeout ) : System

Initializes a new instance of the TimedTokenSource class.

TimedTokenSource ( System.Duration timeout, CancellationToken token ) : System

Initializes a new instance of the TimedTokenSource class.

TimedTokenSource ( System.TimeSpan timeout ) : System

Initializes a new instance of the TimedTokenSource class.

TimedTokenSource ( System.TimeSpan timeout, CancellationToken token ) : System

Initializes a new instance of the TimedTokenSource class.

TimedTokenSource ( int milliseconds ) : System

Initializes a new instance of the TimedTokenSource class.

TimedTokenSource ( int milliseconds, CancellationToken token ) : System

Initializes a new instance of the TimedTokenSource class.

메소드 상세

Cancel() 공개 메소드

Communicates a request for cancellation.
public Cancel ( ) : void
리턴 void

Cancel() 공개 메소드

Communicates a request for cancellation, and specifies whether remaining callbacks and cancelable operations should be processed.
public Cancel ( bool throwOnFirstException ) : void
throwOnFirstException bool true if exceptions should immediately propagate; otherwise, false.
리턴 void

CancelAfter() 공개 메소드

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified duration.
public CancelAfter ( System.Duration delay ) : void
delay System.Duration The duration to wait before canceling this .
리턴 void

CancelAfter() 공개 메소드

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified time span.
public CancelAfter ( System.TimeSpan delay ) : void
delay System.TimeSpan The time span to wait before canceling this .
리턴 void

CancelAfter() 공개 메소드

Schedules a cancel operation on this T:System.Threading.CancellationTokenSource after the specified number of milliseconds.
public CancelAfter ( int millisecondsDelay ) : void
millisecondsDelay int The time span to wait before canceling this .
리턴 void

Dispose() 공개 메소드

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

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( System.Duration timeout ) : System
timeout System.Duration The timeout.
리턴 System

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( System.Duration timeout, CancellationToken token ) : System
timeout System.Duration The timeout.
token System.Threading.CancellationToken The token.
리턴 System

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( System.TimeSpan timeout ) : System
timeout System.TimeSpan The timeout.
리턴 System

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( System.TimeSpan timeout, CancellationToken token ) : System
timeout System.TimeSpan The timeout.
token System.Threading.CancellationToken The token.
리턴 System

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( int milliseconds ) : System
milliseconds int The milliseconds.
리턴 System

TimedTokenSource() 공개 메소드

Initializes a new instance of the TimedTokenSource class.
public TimedTokenSource ( int milliseconds, CancellationToken token ) : System
milliseconds int The milliseconds.
token System.Threading.CancellationToken The token.
리턴 System