Click or drag to resize
Akka.NETSchedulerExtensions.ScheduleTellOnceCancelable Method (IScheduler, Int32, ICanTell, Object, IActorRef)
Schedules to send a message once after a specified period of time.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static ICancelable ScheduleTellOnceCancelable(
	this IScheduler scheduler,
	int millisecondsDelay,
	ICanTell receiver,
	Object message,
	IActorRef sender
)

Parameters

scheduler
Type: Akka.Actor.IScheduler
The scheduler
millisecondsDelay
Type: System.Int32
The time in milliseconds that has to pass before the message is sent.
receiver
Type: Akka.Actor.ICanTell
The receiver.
message
Type: System.Object
The message.
sender
Type: Akka.Actor.IActorRef
The sender.

Return Value

Type: ICancelable
An ICancelable that can be used to cancel sending of the message. Once the message already has been sent, it cannot be cancelled.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IScheduler. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also