public EventProjectionProcessor(IEventProcessor eventProcessor, IEventProjection eventProjection)
        {
            Guard.AgainstNull(eventProjection, "eventProjection");
            Guard.AgainstNull(eventProcessor, "eventProcessor");

	        _eventProcessor = eventProcessor;
	        _eventProjection = eventProjection;
			_eventProcessor = eventProcessor;
            _threadActivity = new ThreadActivity(_eventProcessor.Configuration.DurationToSleepWhenIdle);
        }
        public void AddEventProjection(IEventProjection eventProjection)
        {
            Guard.AgainstNull(eventProjection, "eventProjection");

            if (_started)
            {
                throw new EventProcessingException(string.Format(RecallResources.EventProcessorStartedCannotAddQueue,
                    eventProjection.Name));
            }

            if (
                _eventProjections.Find(
                    queue => queue.Name.Equals(eventProjection.Name, StringComparison.InvariantCultureIgnoreCase)) != null)
            {
                throw new EventProcessingException(string.Format(RecallResources.DuplicateEventQueueName, eventProjection.Name));
            }

            _eventProjections.Add(eventProjection);
        }
Example #3
0
 internal ProjectionPipelineModuleConfig(IEventProjection eventProjection)
 {
     EventProjection = eventProjection;
 }
		public ProjectionEventReaderEmptyEventArgs(OnGetEvent pipelineEvent, IEventProjection projection)
		{
			PipelineEvent = pipelineEvent;
			Projection = projection;
		}