public AvailableWorker(WorkerThreadAvailableCommand command) { Identifier = command.Identifier; InboxWorkQueueUri = command.InboxWorkQueueUri; ManagedThreadId = command.ManagedThreadId; WorkerSendDate = command.DateSent; }
public void RemoveByThread(WorkerThreadAvailableCommand message) { lock (_padlock) { GetAvailableWorkers(message.InboxWorkQueueUri) .RemoveAll(candidate => candidate.ManagedThreadId == message.ManagedThreadId); } }
public void WorkerAvailable(WorkerThreadAvailableCommand message) { lock (_padlock) { GetAvailableWorkers(message.InboxWorkQueueUri).Add(new AvailableWorker(message)); } if (_log.IsTraceEnabled) { _log.Trace(string.Format("AvailableWorker: {0}", message.InboxWorkQueueUri)); } }