Beispiel #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);
     }
 }
Beispiel #2
0
 internal void Unsubscribe(FeedOutputQueue <T> outputQueue)
 {
     _outputQueues.Remove(outputQueue);
 }