Click or drag to resize
Akka.NETCancelable Class
A ICancelable that wraps a CancellationTokenSource. When canceling this instance the underlying CancellationTokenSource is canceled as well.
Inheritance Hierarchy
SystemObject
  Akka.ActorCancelable

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public class Cancelable : ICancelable, IDisposable

The Cancelable type exposes the following members.

Constructors
  NameDescription
Public methodCancelable(IActionScheduler)
Initializes a new instance of the Cancelable class.
Public methodCancelable(IScheduler)
Initializes a new instance of the Cancelable class.
Public methodCancelable(IActionScheduler, TimeSpan)
Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.
Public methodCancelable(IScheduler, Int32)
Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of milliseconds.
Public methodCancelable(IScheduler, TimeSpan)
Initializes a new instance of the Cancelable class that will be cancelled after the specified amount of time.
Top
Properties
  NameDescription
Public propertyIsCancellationRequested
TBD
Public propertyToken
TBD
Top
Methods
  NameDescription
Public methodCancel
TBD
Public methodCancel(Boolean)
Communicates a request for cancellation, and specifies whether remaining callbacks and cancelable operations should be processed.
Public methodCancelAfter(Int32)
Schedules a cancel operation on this cancelable after the specified number of milliseconds.
Public methodCancelAfter(TimeSpan)
Schedules a cancel operation on this cancelable after the specified delay.
Public methodStatic memberCreateCanceled
Returns a ICancelable that has already been canceled.
Public methodStatic memberCreateLinkedCancelable(IActionScheduler, ICancelable)
Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.
Public methodStatic memberCreateLinkedCancelable(IScheduler, ICancelable)
Creates a ICancelable that will be in the canceled state when any of the source cancelables are in the canceled state.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also