public ConsoleResourceHarvesterActor(ITellScheduler messageScheduler, IActorRef villagerAcor)
     : base(messageScheduler, villagerAcor)
 {
 }
예제 #2
0
 /// <summary>
 /// Schedules a message to be sent once after a specified period of time.
 /// </summary>
 /// <param name="scheduler">The scheduler used to schedule the sending of the message.</param>
 /// <param name="millisecondsDelay">The time in milliseconds that has to pass before the message is sent.</param>
 /// <param name="receiver">The actor that receives the message.</param>
 /// <param name="message">The message that is being sent.</param>
 /// <param name="sender">The actor that sent the message.</param>
 /// <param name="cancelable">OPTIONAL. An <see cref="ICancelable"/> used to cancel sending the message. Once the message has been sent, it cannot be canceled.</param>
 public static void ScheduleTellOnce(this ITellScheduler scheduler, int millisecondsDelay, ICanTell receiver, object message, IActorRef sender, ICancelable cancelable = null)
 {
     scheduler.ScheduleTellOnce(TimeSpan.FromMilliseconds(millisecondsDelay), receiver, message, sender, cancelable);
 }
예제 #3
0
 /// <summary>
 /// Schedules a message to be sent repeatedly after an initial delay.
 /// </summary>
 /// <param name="scheduler">The scheduler used to schedule the sending of the message.</param>
 /// <param name="initialMillisecondsDelay">The time in milliseconds that has to pass before the first message is sent.</param>
 /// <param name="millisecondsInterval">The time in milliseconds that has to pass between sending of the message.</param>
 /// <param name="receiver">The actor that receives the message.</param>
 /// <param name="message">The message that is being sent.</param>
 /// <param name="sender">The actor that sent the message.</param>
 /// <param name="cancelable">OPTIONAL. An <see cref="ICancelable"/> used to cancel sending the message. Once the message has been sent, it cannot be canceled.</param>
 public static void ScheduleTellRepeatedly(this ITellScheduler scheduler, int initialMillisecondsDelay, int millisecondsInterval, ICanTell receiver, object message, IActorRef sender, ICancelable cancelable = null)
 {
     scheduler.ScheduleTellRepeatedly(TimeSpan.FromMilliseconds(initialMillisecondsDelay), TimeSpan.FromMilliseconds(millisecondsInterval), receiver, message, sender, cancelable);
 }
예제 #4
0
 public ConsoleResourceHarvesterActor(ITellScheduler messageScheduler, IActorRef villagerAcor)
     : base(messageScheduler, villagerAcor)
 {
 }