/// <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(); } }
public IEnumerable <Envelope> ClearStash() { return(_userStash.ClearStash()); }