Esempio n. 1
0
        public void Start()
        {
            if (!ConfigureMSMQDistributor.WorkerRunsOnThisEndpoint() || SettingsHolder.Get <int>("Distributor.Version") != 2)
            {
                return;
            }

            transport = Bus.Transport;
            var capacityAvailable = transport.MaximumConcurrencyLevel;

            SendReadyMessage(workerSessionId, capacityAvailable, true);

            transport.FinishedMessageProcessing += TransportOnFinishedMessageProcessing;
        }
Esempio n. 2
0
 static DistributorSatellite()
 {
     Address = Configure.Instance.GetMasterNodeAddress();
     Disable = !ConfigureMSMQDistributor.DistributorConfiguredToRunOnThisEndpoint() || SettingsHolder.Get <int>("Distributor.Version") != 2;
 }
 static DistributorReadyMessageProcessor()
 {
     Address = Configure.Instance.GetMasterNodeAddress().SubScope("distributor.control");
     Disable = !ConfigureMSMQDistributor.DistributorConfiguredToRunOnThisEndpoint() || SettingsHolder.Get <int>("Distributor.Version") != 2;
 }