Ejemplo n.º 1
0
            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());
            }
Ejemplo n.º 2
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();
     }
 }
Ejemplo n.º 3
0
 public void Prepend(IEnumerable <Envelope> envelopes)
 {
     _userStash.Prepend(envelopes);
 }