C# Класс Akka.Actor.Cancelable

A ICancelable that wraps a CancellationTokenSource. When canceling this instance the underlying CancellationTokenSource is canceled as well.
Наследование: ICancelable, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Cancel ( ) : void
Cancel ( bool throwOnFirstException ) : void
CancelAfter ( System.TimeSpan delay ) : void
CancelAfter ( int millisecondsDelay ) : void
Cancelable ( IActionScheduler scheduler ) : System

Initializes a new instance of the Cancelable class.

Cancelable ( IActionScheduler scheduler, System.TimeSpan delay ) : System

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.

Cancelable ( IScheduler scheduler ) : System

Initializes a new instance of the Cancelable class.

Cancelable ( IScheduler scheduler, System.TimeSpan delay ) : System

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.

Cancelable ( IScheduler scheduler, int millisecondsDelay ) : System

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of milliseconds.

CreateCanceled ( ) : ICancelable

Returns a ICancelable that has already been canceled.

CreateLinkedCancelable ( IActionScheduler scheduler ) : ICancelable

Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.

CreateLinkedCancelable ( IScheduler scheduler ) : ICancelable

Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.

Dispose ( ) : void

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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Приватные методы

Метод Описание
Cancelable ( IActionScheduler scheduler, CancellationTokenSource source ) : System
InternalCancelAfter ( System.TimeSpan delay ) : void
ThrowIfDisposed ( ) : void

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

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

public Cancel ( ) : void
Результат void

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

public Cancel ( bool throwOnFirstException ) : void
throwOnFirstException bool
Результат void

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

public CancelAfter ( System.TimeSpan delay ) : void
delay System.TimeSpan
Результат void

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

public CancelAfter ( int millisecondsDelay ) : void
millisecondsDelay int
Результат void

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

Initializes a new instance of the Cancelable class.
public Cancelable ( IActionScheduler scheduler ) : System
scheduler IActionScheduler
Результат System

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

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.
public Cancelable ( IActionScheduler scheduler, System.TimeSpan delay ) : System
scheduler IActionScheduler The scheduler.
delay System.TimeSpan The delay before the cancelable is canceled.
Результат System

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

Initializes a new instance of the Cancelable class.
public Cancelable ( IScheduler scheduler ) : System
scheduler IScheduler
Результат System

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

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.
public Cancelable ( IScheduler scheduler, System.TimeSpan delay ) : System
scheduler IScheduler The scheduler.
delay System.TimeSpan The delay before the cancelable is canceled.
Результат System

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

Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of milliseconds.
public Cancelable ( IScheduler scheduler, int millisecondsDelay ) : System
scheduler IScheduler The scheduler.
millisecondsDelay int The delay in milliseconds.
Результат System

CreateCanceled() публичный статический Метод

Returns a ICancelable that has already been canceled.
public static CreateCanceled ( ) : ICancelable
Результат ICancelable

CreateLinkedCancelable() публичный статический Метод

Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.
public static CreateLinkedCancelable ( IActionScheduler scheduler ) : ICancelable
scheduler IActionScheduler The scheduler
Результат ICancelable

CreateLinkedCancelable() публичный статический Метод

Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.
public static CreateLinkedCancelable ( IScheduler scheduler ) : ICancelable
scheduler IScheduler The scheduler
Результат ICancelable

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool if set to true the method has been called directly or indirectly by a /// user's code. Managed and unmanaged resources will be disposed.
/// if set to false the method has been called by the runtime from inside the finalizer and only /// unmanaged resources can be disposed.
Результат void