public static GetCurrentSelfOrNoSender ( ) : IActorRef | ||
Результат | IActorRef |
public static void Tell(this IActorRef receiver, object message) { var sender = ActorCell.GetCurrentSelfOrNoSender(); receiver.Tell(message, sender); }
public static void ScheduleOnce(this IScheduler scheduler, TimeSpan initialDelay, IActorRef receiver, object message) { var sender = ActorCell.GetCurrentSelfOrNoSender(); scheduler.Advanced.ScheduleOnce(initialDelay, () => receiver.Tell(message, sender), null); }
public static void Schedule(this IScheduler scheduler, TimeSpan initialDelay, TimeSpan interval, IActorRef receiver, object message, CancellationToken cancellationToken) { var sender = ActorCell.GetCurrentSelfOrNoSender(); scheduler.Advanced.ScheduleRepeatedly(initialDelay, interval, () => receiver.Tell(message, sender), null); }
public void Stop() { SendSystemMessage(Terminate.Instance, ActorCell.GetCurrentSelfOrNoSender()); }
public void Restart(Exception cause) { SendSystemMessage(new Recreate(cause), ActorCell.GetCurrentSelfOrNoSender()); }
public void Resume(Exception causedByFailure) { SendSystemMessage(new Resume(causedByFailure), ActorCell.GetCurrentSelfOrNoSender()); }
public void Suspend() { SendSystemMessage(Akka.Dispatch.SysMsg.Suspend.Instance, ActorCell.GetCurrentSelfOrNoSender()); }
public void Tell(object message) { var sender = ActorCell.GetCurrentSelfOrNoSender(); TellInternal(message, sender); }