public void Handle(ReaderSubscriptionMessage.EventReaderEof message)
 {
     if (_eofReached)
     {
         return;                 // self eof-reached, but reader is still running
     }
     if (_stopOnEof)
     {
         ProcessEofAndEmitEof();
     }
 }
 public void Handle(ReaderSubscriptionMessage.EventReaderEof message)
 {
     if (_stopOnEof)
     {
         _eofReached = true;
         EofReached();
         _publisher.Publish(
             new EventReaderSubscriptionMessage.EofReached(
                 _subscriptionId, _positionTracker.LastTag,
                 _subscriptionMessageSequenceNumber++));
     }
 }
Example #3
0
        public void Handle(ReaderSubscriptionMessage.EventReaderEof message)
        {
            Guid projectionId;

            if (_stopped)
            {
                return;
            }
            if (!_eventReaderSubscriptions.TryGetValue(message.CorrelationId, out projectionId))
            {
                return; // unsubscribed
            }
            _subscriptions[projectionId].Handle(message);

//            _pausedSubscriptions.Add(projectionId); // it is actually disposed -- workaround
//            Handle(new ReaderSubscriptionManagement.Unsubscribe(projectionId));
        }
Example #4
0
 public void Handle(ReaderSubscriptionMessage.EventReaderEof message)
 {
     _receivedEofNotifications.Add(message);
 }
Example #5
0
 public bool Handle(ReaderSubscriptionMessage.EventReaderEof message)
 {
     throw new NotImplementedException();
 }