예제 #1
0
        void Consume(ConfigureWorker message)
        {
            if (message.InProgressLimit >= 0)
            {
                _inProgressLimit = message.InProgressLimit;
            }

            if (message.PendingLimit >= 0)
            {
                _pendingLimit = message.PendingLimit;
            }

            ScheduleUpdate();
        }
예제 #2
0
        private void Consume(ConfigureWorker message)
        {
            if (message.InProgressLimit >= 0)
            {
                _inProgressLimit = message.InProgressLimit;
            }

            if (message.PendingLimit >= 0)
            {
                _pendingLimit = message.PendingLimit;
            }

            PublishWorkerAvailability();
        }
예제 #3
0
 bool Accept(ConfigureWorker message)
 {
     return(typeof(TSaga).GetType().FullName == message.MessageType);
 }
예제 #4
0
 private bool Accept(ConfigureWorker message)
 {
     return(GetType().GetGenericArguments()[0].FullName == message.MessageType);
 }