Esempio n. 1
0
        public void ReturnAvailableWorker(AvailableWorker availableWorker)
        {
            if (availableWorker == null)
            {
                return;
            }

            lock (_padlock)
            {
                GetAvailableWorkers(availableWorker.InboxWorkQueueUri).Add(availableWorker);
            }
        }
Esempio n. 2
0
 public static void SetAvailableWorker(this IState <IPipeline> state, AvailableWorker value)
 {
     state.Replace(StateKeys.AvailableWorker, value);
 }