C# Класс WebApplications.Utilities.Threading.WrappedTokenSource

Наследование: ICancelableTokenSource
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

WrappedTokenSource ( ) : System

Initializes a new instance of the WrappedTokenSource class from a token and multiple cancellation token sources.

WrappedTokenSource ( CancellationToken token1, CancellationToken token2 ) : System

Initializes a new instance of the WrappedTokenSource class from a token and multiple cancellation token sources.

WrappedTokenSource ( [ source ) : System

Initializes a new instance of the WrappedTokenSource class from a single cancellation token source.

Описание методов

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

WrappedTokenSource() публичный Метод

Initializes a new instance of the WrappedTokenSource class from a token and multiple cancellation token sources.
public WrappedTokenSource ( ) : System
Результат System

WrappedTokenSource() публичный Метод

Initializes a new instance of the WrappedTokenSource class from a token and multiple cancellation token sources.
public WrappedTokenSource ( CancellationToken token1, CancellationToken token2 ) : System
token1 System.Threading.CancellationToken The token1.
token2 System.Threading.CancellationToken The token2.
Результат System

WrappedTokenSource() публичный Метод

Initializes a new instance of the WrappedTokenSource class from a single cancellation token source.
public WrappedTokenSource ( [ source ) : System
source [ The source.
Результат System