예제 #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 IEnumerable <Envelope> ClearStash()
 {
     return(_userStash.ClearStash());
 }