Exemplo n.º 1
0
 /// Stash an event
 public void Push(IStashableEvent eventInstance)
 {
     if (_events.Count >= _maxStashSize)
       {
     throw new Exception(string.Format("Deferred event stash is full ({0})", _maxStashSize));
       }
       _events.Enqueue(eventInstance);
 }
Exemplo n.º 2
0
 /// Stash an event
 public void Push(IStashableEvent eventInstance)
 {
     if (_events.Count >= _maxStashSize)
     {
         throw new Exception(string.Format("Deferred event stash is full ({0})", _maxStashSize));
     }
     _events.Enqueue(eventInstance);
 }