public void UnstashAll() { // Internally, all messages are processed by unstashing them from // the internal stash one-by-one. Hence, an unstashAll() from the // user stash must be prepended to the internal stash. _internalStash.Prepend(ClearStash()); }
/// <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 void Prepend(IEnumerable <Envelope> envelopes) { _userStash.Prepend(envelopes); }