void Consume(ConfigureWorker message) { if (message.InProgressLimit >= 0) { _inProgressLimit = message.InProgressLimit; } if (message.PendingLimit >= 0) { _pendingLimit = message.PendingLimit; } ScheduleUpdate(); }
private void Consume(ConfigureWorker message) { if (message.InProgressLimit >= 0) { _inProgressLimit = message.InProgressLimit; } if (message.PendingLimit >= 0) { _pendingLimit = message.PendingLimit; } PublishWorkerAvailability(); }
bool Accept(ConfigureWorker message) { return(typeof(TSaga).GetType().FullName == message.MessageType); }
private bool Accept(ConfigureWorker message) { return(GetType().GetGenericArguments()[0].FullName == message.MessageType); }