Exemple #1
0
        public InboxProcessor(IServiceBus bus, IThreadActivity threadActivity)
        {
            Guard.AgainstNull(bus, "bus");
            Guard.AgainstNull(threadActivity, "threadActivity");

            _bus            = bus;
            _threadActivity = threadActivity;
        }
        protected QueueProcessor(IServiceBus bus, IThreadActivity threadActivity)
        {
            Guard.AgainstNull(bus, "bus");
            Guard.AgainstNull(threadActivity, "threadActivity");

            this.bus            = bus;
            this.threadActivity = threadActivity;
        }
        public InboxProcessor(IServiceBus bus, IThreadActivity threadActivity)
        {
            Guard.AgainstNull(bus, "bus");
            Guard.AgainstNull(threadActivity, "threadActivity");

            this.bus = bus;
            this.threadActivity = threadActivity;
        }
        protected QueueProcessor(IServiceBusEvents events, IThreadActivity threadActivity, IPipelineFactory pipelineFactory)
        {
            Guard.AgainstNull(events, "events");
            Guard.AgainstNull(threadActivity, "threadActivity");
            Guard.AgainstNull(pipelineFactory, "pipelineFactory");

            _events          = events;
            _threadActivity  = threadActivity;
            _pipelineFactory = pipelineFactory;
        }
        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);
        }
Exemple #6
0
        public ProjectionProcessor(IEventStoreConfiguration configuration, IPipelineFactory pipelineFactory,
                                   IEventProcessor eventProcessor)
        {
            Guard.AgainstNull(configuration, nameof(configuration));
            Guard.AgainstNull(pipelineFactory, nameof(pipelineFactory));
            Guard.AgainstNull(eventProcessor, nameof(eventProcessor));

            _pipelineFactory = pipelineFactory;
            _eventProcessor  = eventProcessor;
            _threadActivity  = new ThreadActivity(configuration.DurationToSleepWhenIdle);
        }
        public InboxProcessor(IServiceBusConfiguration configuration, IServiceBusEvents events, IThreadActivity threadActivity, IWorkerAvailabilityManager workerAvailabilityManager, IPipelineFactory pipelineFactory)
        {
            Guard.AgainstNull(configuration, "configuration");
            Guard.AgainstNull(events, "events");
            Guard.AgainstNull(threadActivity, "threadActivity");
            Guard.AgainstNull(workerAvailabilityManager, "workerAvailabilityManager");
            Guard.AgainstNull(pipelineFactory, "pipelineFactory");

            _configuration             = configuration;
            _events                    = events;
            _threadActivity            = threadActivity;
            _workerAvailabilityManager = workerAvailabilityManager;
            _pipelineFactory           = pipelineFactory;
        }
Exemple #8
0
 public OutboxProcessor(IServiceBusEvents events, IThreadActivity threadActivity, IPipelineFactory pipelineFactory)
     : base(events, threadActivity, pipelineFactory)
 {
 }