Пример #1
0
 public FeedOutputQueue <T> Subscribe()
 {
     lock (_lockObject)
     {
         if (isDisposed)
         {
             throw new ApplicationException("Feed is already disposed");
         }
         var outputQueue = new FeedOutputQueue <T>(this);
         _outputQueues.Add(outputQueue);
         return(outputQueue);
     }
 }
Пример #2
0
 internal void Unsubscribe(FeedOutputQueue <T> outputQueue)
 {
     _outputQueues.Remove(outputQueue);
 }