C# Class Akka.Actor.Cancelable

A ICancelable that wraps a CancellationTokenSource. When canceling this instance the underlying CancellationTokenSource is canceled as well.
Inheritance: ICancelable, IDisposable
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

Méthode Description
Cancelable ( IActionScheduler scheduler, CancellationTokenSource source ) : System
InternalCancelAfter ( System.TimeSpan delay ) : void
ThrowIfDisposed ( ) : void

Method Details

Cancel() public méthode

public Cancel ( ) : void
Résultat void

Cancel() public méthode

public Cancel ( bool throwOnFirstException ) : void
throwOnFirstException bool
Résultat void

CancelAfter() public méthode

public CancelAfter ( System.TimeSpan delay ) : void
delay System.TimeSpan
Résultat void

CancelAfter() public méthode

public CancelAfter ( int millisecondsDelay ) : void
millisecondsDelay int
Résultat void

Cancelable() public méthode

Initializes a new instance of the Cancelable class.
public Cancelable ( IActionScheduler scheduler ) : System
scheduler IActionScheduler
Résultat System

Cancelable() public méthode

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

Cancelable() public méthode

Initializes a new instance of the Cancelable class.
public Cancelable ( IScheduler scheduler ) : System
scheduler IScheduler
Résultat System

Cancelable() public méthode

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

Cancelable() public méthode

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

CreateCanceled() public static méthode

Returns a ICancelable that has already been canceled.
public static CreateCanceled ( ) : ICancelable
Résultat ICancelable

CreateLinkedCancelable() public static méthode

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
Résultat ICancelable

CreateLinkedCancelable() public static méthode

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
Résultat ICancelable

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

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