public void ReturnAvailableWorker(AvailableWorker availableWorker) { if (availableWorker == null) { return; } lock (_padlock) { GetAvailableWorkers(availableWorker.InboxWorkQueueUri).Add(availableWorker); } }
public static void SetAvailableWorker(this IState <IPipeline> state, AvailableWorker value) { state.Replace(StateKeys.AvailableWorker, value); }