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)); } }
private DispatchQueue CreateAndStartDispatchQueue(string queueName) { var dispatchQueue = _dispatchQueueFactory.Create(queueName); dispatchQueue.Start(); return(dispatchQueue); }