Exemplo n.º 1
0
 public CommittedEventWorkItem(
     CoreProjection projection, EventReaderSubscriptionMessage.CommittedEventReceived message,
     StatePartitionSelector statePartitionSelector)
     : base(projection, null)
 {
     _statePartitionSelector = statePartitionSelector;
     _message = message;
 }
 public CommittedEventWorkItem(
     CoreProjection projection, ProjectionSubscriptionMessage.CommittedEventReceived message,
     StatePartitionSelector statePartitionSelector)
     : base(projection, Guid.NewGuid())
 {
     _statePartitionSelector = statePartitionSelector;
     _message = message;
 }
 public CommittedEventWorkItem(
     CoreProjection projection, EventReaderSubscriptionMessage.CommittedEventReceived message,
     StatePartitionSelector statePartitionSelector)
     : base(projection, null)
 {
     _statePartitionSelector = statePartitionSelector;
     _message = message;
 }
Exemplo n.º 4
0
 public CommittedEventWorkItem(
     IEventProcessingProjectionPhase projection, EventReaderSubscriptionMessage.CommittedEventReceived message,
     StatePartitionSelector statePartitionSelector)
     : base(null)
 {
     _projection             = projection;
     _statePartitionSelector = statePartitionSelector;
     _message         = message;
     _requiresRunning = true;
 }
Exemplo n.º 5
0
 public CommittedEventWorkItem(
     IEventProcessingProjectionPhase projection, EventReaderSubscriptionMessage.CommittedEventReceived message,
     StatePartitionSelector statePartitionSelector)
     : base(null)
 {
     _projection = projection;
     _statePartitionSelector = statePartitionSelector;
     _message = message;
     _requiresRunning = true;
 }
Exemplo n.º 6
0
        public EventProcessingProjectionProcessingPhase(
            CoreProjection coreProjection,
            Guid projectionCorrelationId,
            IPublisher publisher,
            IPublisher inputQueue,
            ProjectionConfig projectionConfig,
            Action updateStatistics,
            IProjectionStateHandler projectionStateHandler,
            PartitionStateCache partitionStateCache,
            bool definesStateTransform,
            string projectionName,
            ILogger logger,
            CheckpointTag zeroCheckpointTag,
            ICoreProjectionCheckpointManager coreProjectionCheckpointManager,
            StatePartitionSelector statePartitionSelector,
            ReaderSubscriptionDispatcher subscriptionDispatcher,
            IReaderStrategy readerStrategy,
            IResultWriter resultWriter,
            bool useCheckpoints,
            bool stopOnEof,
            bool isBiState,
            bool orderedPartitionProcessing,
            IEmittedStreamsTracker emittedStreamsTracker,
            bool enableContentTypeValidation)
            : base(
                publisher,
                inputQueue,
                coreProjection,
                projectionCorrelationId,
                coreProjectionCheckpointManager,
                projectionConfig,
                projectionName,
                logger,
                zeroCheckpointTag,
                partitionStateCache,
                resultWriter,
                updateStatistics,
                subscriptionDispatcher,
                readerStrategy,
                useCheckpoints,
                stopOnEof,
                orderedPartitionProcessing,
                isBiState,
                emittedStreamsTracker,
                enableContentTypeValidation)
        {
            _projectionStateHandler = projectionStateHandler;
            _definesStateTransform  = definesStateTransform;
            _statePartitionSelector = statePartitionSelector;
            _isBiState = isBiState;

            _stopwatch = new Stopwatch();
        }
Exemplo n.º 7
0
        private CheckpointStrategy(
            bool allStreams, HashSet <string> categories, HashSet <string> streams, bool allEvents, HashSet <string> events,
            bool byStream)
        {
            _allStreams = allStreams;
            _categories = categories;
            _streams    = streams;
            _allEvents  = allEvents;
            _events     = events;
            _byStream   = byStream;

            _eventFilter            = CreateEventFilter();
            _positionTagger         = CreatePositionTagger();
            _statePartitionSelector = CreateStatePartitionSelector();
        }
Exemplo n.º 8
0
        private CheckpointStrategy(
            bool allStreams, HashSet<string> categories, HashSet<string> streams, bool allEvents, HashSet<string> events,
            bool byStream)
        {
            _allStreams = allStreams;
            _categories = categories;
            _streams = streams;
            _allEvents = allEvents;
            _events = events;
            _byStream = byStream;

            _eventFilter = CreateEventFilter();
            _positionTagger = CreatePositionTagger();
            _statePartitionSelector = CreateStatePartitionSelector();
        }
        public EventProcessingProjectionProcessingPhase(
            CoreProjection coreProjection, Guid projectionCorrelationId, IPublisher publisher,
            ProjectionConfig projectionConfig, Action updateStatistics, IProjectionStateHandler projectionStateHandler,
            PartitionStateCache partitionStateCache, bool definesStateTransform, string projectionName, ILogger logger,
            CheckpointTag zeroCheckpointTag, ICoreProjectionCheckpointManager coreProjectionCheckpointManager,
            StatePartitionSelector statePartitionSelector, ReaderSubscriptionDispatcher subscriptionDispatcher,
            IReaderStrategy readerStrategy, IResultWriter resultWriter, bool useCheckpoints, bool stopOnEof)
            : base(
                publisher, coreProjection, projectionCorrelationId, coreProjectionCheckpointManager, projectionConfig,
                projectionName, logger, zeroCheckpointTag, partitionStateCache, resultWriter, updateStatistics,
                subscriptionDispatcher, readerStrategy, useCheckpoints, stopOnEof)
        {
            _projectionStateHandler = projectionStateHandler;
            _definesStateTransform  = definesStateTransform;
            _statePartitionSelector = statePartitionSelector;

            _stopwatch = new Stopwatch();
        }