Example #1
0
 private void LoadDispatchQueues()
 {
     foreach (var invoker in _invokers.Values.SelectMany(x => x).Where(x => !_dispatchQueues.ContainsKey(x.DispatchQueueName)))
     {
         _dispatchQueues.TryAdd(invoker.DispatchQueueName, _dispatchQueueFactory.Create(invoker.DispatchQueueName));
     }
 }
Example #2
0
        private DispatchQueue CreateAndStartDispatchQueue(string queueName)
        {
            var dispatchQueue = _dispatchQueueFactory.Create(queueName);

            dispatchQueue.Start();

            return(dispatchQueue);
        }