Exemple #1
0
        public WorkerAvailableHandler(IServiceBusConfiguration configuration, IWorkerAvailabilityManager workerAvailabilityManager)
        {
            Guard.AgainstNull(workerAvailabilityManager, nameof(workerAvailabilityManager));
            Guard.AgainstNull(configuration, nameof(configuration));

            _configuration             = configuration;
            _workerAvailabilityManager = workerAvailabilityManager;
        }
        public DistributorReadyMessageProcessor(IBuilder builder, ReadOnlySettings settings)
        {
            disable = !settings.GetOrDefault<bool>("Distributor.Enabled");

            if (disable)
            {
                return;
            }

            workerAvailabilityManager = builder.Build<IWorkerAvailabilityManager>();
            address = MasterNodeConfiguration.GetMasterNodeAddress(settings).SubScope("distributor.control");
        }
Exemple #3
0
        public DistributorReadyMessageProcessor(IBuilder builder, ReadOnlySettings settings)
        {
            disable = !settings.GetOrDefault <bool>("Distributor.Enabled");

            if (disable)
            {
                return;
            }

            workerAvailabilityManager = builder.Build <IWorkerAvailabilityManager>();
            address = MasterNodeConfiguration.GetMasterNodeAddress(settings).SubScope("distributor.control");
        }
        public DistributorSatellite(IBuilder builder, ReadOnlySettings settings)
        {
            disable = !settings.GetOrDefault<bool>("Distributor.Enabled");

            if (disable)
            {
                return;
            }

            messageSender = builder.Build<ISendMessages>();
            workerManager = builder.Build<IWorkerAvailabilityManager>();
            address = MasterNodeConfiguration.GetMasterNodeAddress(settings);
        }
        public DistributorSatellite(IBuilder builder, ReadOnlySettings settings)
        {
            disable = !settings.GetOrDefault <bool>("Distributor.Enabled");

            if (disable)
            {
                return;
            }

            messageSender = builder.Build <ISendMessages>();
            workerManager = builder.Build <IWorkerAvailabilityManager>();
            address       = MasterNodeConfiguration.GetMasterNodeAddress(settings);
        }
        public StartupProcessingObserver(IServiceBus bus, IServiceBusConfiguration configuration, IServiceBusEvents events, IWorkerAvailabilityManager workerAvailabilityManager, IPipelineFactory pipelineFactory)
        {
            Guard.AgainstNull(bus, "bus");
            Guard.AgainstNull(configuration, "configuration");
            Guard.AgainstNull(events, "events");
            Guard.AgainstNull(workerAvailabilityManager, "workerAvailabilityManager");
            Guard.AgainstNull(pipelineFactory, "pipelineFactory");

            _bus = bus;
            _workerAvailabilityManager = workerAvailabilityManager;
            _pipelineFactory           = pipelineFactory;
            _configuration             = configuration;
            _events = events;
        }
        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 InboxProcessorFactory(IServiceBus bus, IServiceBusConfiguration configuration, IServiceBusEvents events,
                                     IWorkerAvailabilityManager workerAvailabilityManager, IPipelineFactory pipelineFactory)
        {
            Guard.AgainstNull(bus, nameof(bus));
            Guard.AgainstNull(configuration, nameof(configuration));
            Guard.AgainstNull(events, nameof(events));
            Guard.AgainstNull(workerAvailabilityManager, nameof(workerAvailabilityManager));
            Guard.AgainstNull(pipelineFactory, nameof(pipelineFactory));

            _bus                       = bus;
            _configuration             = configuration;
            _events                    = events;
            _workerAvailabilityManager = workerAvailabilityManager;
            _pipelineFactory           = pipelineFactory;
        }
Exemple #9
0
        public DistributorMessageObserver(IWorkerAvailabilityManager workerAvailabilityManager)
        {
            Guard.AgainstNull(workerAvailabilityManager, nameof(workerAvailabilityManager));

            _workerAvailabilityManager = workerAvailabilityManager;
        }
Exemple #10
0
        public WorkerStartedHandler(IWorkerAvailabilityManager workerAvailabilityManager)
        {
            Guard.AgainstNull(workerAvailabilityManager, nameof(workerAvailabilityManager));

            _workerAvailabilityManager = workerAvailabilityManager;
        }
	    public WorkerAvailableHandler(IWorkerAvailabilityManager workerAvailabilityManager)
	    {
            Guard.AgainstNull(workerAvailabilityManager, "workerAvailabilityManager");

	        _workerAvailabilityManager = workerAvailabilityManager;
	    }