Ejemplo n.º 1
0
        public void Handle(ReaderSubscriptionMessage.EventReaderPartitionEof message)
        {
            var eventCheckpointTag = _positionTagger.MakeCheckpointTag(_positionTracker.LastTag, message);

            _publisher.Publish(
                new EventReaderSubscriptionMessage.PartitionEofReached(
                    _subscriptionId, eventCheckpointTag, message.Partition,
                    _subscriptionMessageSequenceNumber++));
        }
Ejemplo n.º 2
0
        public void Handle(ReaderSubscriptionMessage.EventReaderPartitionEof message)
        {
            if (_eofReached)
            {
                return;                 // self eof-reached, but reader is still running
            }
            var eventCheckpointTag = _positionTagger.MakeCheckpointTag(_positionTracker.LastTag, message);

            _publisher.Publish(
                new EventReaderSubscriptionMessage.PartitionEofReached(
                    _subscriptionId, eventCheckpointTag, message.Partition,
                    _subscriptionMessageSequenceNumber++));
        }
Ejemplo n.º 3
0
        public void Handle(ReaderSubscriptionMessage.EventReaderPartitionEof message)
        {
            Guid projectionId;

            if (_stopped)
            {
                return;
            }
            if (!_eventReaderSubscriptions.TryGetValue(message.CorrelationId, out projectionId))
            {
                return; // unsubscribed
            }
            _subscriptions[projectionId].Handle(message);
        }
Ejemplo n.º 4
0
        public override CheckpointTag MakeCheckpointTag(CheckpointTag previous, ReaderSubscriptionMessage.EventReaderPartitionEof partitionEof)
        {
            if (partitionEof.PreTagged == null)
            {
                throw new ArgumentException("committedEvent.PreTagged == null", "committedEvent");
            }

            if (previous.Phase != Phase)
            {
                throw new ArgumentException(
                          string.Format("Invalid checkpoint tag phase.  Expected: {0} Was: {1}", Phase, previous.Phase));
            }

            return(partitionEof.PreTagged);
        }
Ejemplo n.º 5
0
 public override CheckpointTag MakeCheckpointTag(
     CheckpointTag previous, ReaderSubscriptionMessage.EventReaderPartitionEof partitionEof)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public abstract CheckpointTag MakeCheckpointTag(CheckpointTag previous, ReaderSubscriptionMessage.EventReaderPartitionEof partitionEof);
 public new void Handle(ReaderSubscriptionMessage.EventReaderPartitionEof message)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 8
0
 public void Handle(ReaderSubscriptionMessage.EventReaderPartitionEof message)
 {
     _receivedPartitionEofNotifications.Add(message);
 }