Пример #1
0
        public void ReturnAvailableWorker(AvailableWorker availableWorker)
        {
            if (availableWorker == null)
            {
                return;
            }

            lock (_padlock)
            {
                GetAvailableWorkers(availableWorker.InboxWorkQueueUri).Add(availableWorker);
            }
        }
Пример #2
0
 public static void SetAvailableWorker(this IState <IPipeline> state, AvailableWorker value)
 {
     state.Replace(StateKeys.AvailableWorker, value);
 }