Пример #1
0
        /// <inheritdoc />
        public void RunTask(string queueId)
        {
            currentWorkerTasks.Write(tasks =>
            {
                if (tasks.ContainsKey(queueId))
                {
                    return;
                }

                var command = taskQueue.GetNextTask(queueId);

                if (command == null)
                {
                    return;
                }

                BeginNextTask(queueId, command, tasks);
            });
        }