void PublishWorkerAvailability() { try { var message = new WorkerAvailable <TMessage>(_controlUri, _dataUri, _inProgress, _inProgressLimit, _pendingMessages.PendingMessageCount(), _pendingLimit); _updatePending = false; _bus.Publish(message); } catch { } }
void PublishWorkerAvailable <TMessage>() { _bus.Publish(new WorkerAvailable <TMessage>(_controlUri, _dataUri, _inProgress, _inProgressLimit, _pendingMessages.PendingMessageCount(), _pendingLimit)); }
public void Consume(IConsumeContext <PingWorker> context) { try { var message = new WorkerAvailable <TMessage>(_worker.ControlUri, _worker.DataUri, _inProgress, _inProgressLimit, _pending.PendingMessageCount(), _pendingLimit); context.Respond(message); if (_log.IsDebugEnabled) { _log.DebugFormat("Worker {0}: {1} in progress, {2} pending", _worker.DataUri, _inProgress, _pending); } } catch { } }
private void PublishWorkerAvailability() { _updatePending = false; _bus.Publish(new WorkerAvailable <T>(_controlUri, _dataUri, _inProgress, _inProgressLimit, _pendingMessages.PendingMessageCount(), _pendingLimit)); }