Пример #1
0
 /// <summary>
 /// Prepends all stashed commands to the actor's mailbox and then clears the command stash.
 /// Has no effect if the actor is recovering i.e. if <see cref="IsRecovering"/> returns `true`.
 /// </summary>
 public sealed override void UnstashAll()
 {
     if (!IsRecovering)
     {
         messageStash.Prepend(commandStash.ClearStash());
         messageStash.UnstashAll();
     }
 }
Пример #2
0
 public void UnstashAll(Func <Envelope, bool> predicate)
 {
     _userStash.UnstashAll(predicate);
 }