예제 #1
0
        private void QueueTask(TaskItem item)
        {
            var tqi = new TaskQueueItem {
                TaskItemId = item.Id, Type = item.Type                          /*, ProcessingId = Guid.NewGuid()*/
            };

            taskQueue.Add(tqi);
            log.Information($"{item.ToDescription()} queued");
        }
예제 #2
0
        public void QueueTask(TaskItem item)
        {
            var tqi = new TaskQueueItem {
                TaskItemId = item.Id, Type = item.Type
            };

            TaskQueue.Add(tqi);
            log.Information($"{item.ToDescription()} queued");
        }
예제 #3
0
파일: TaskBase.cs 프로젝트: asimshah/Music
        protected void QueueTask(TaskItem item)
        {
            var tqi = new TaskQueueItem {
                TaskItemId = item.Id, Type = item.Type                          /*, ProcessingId = Guid.NewGuid()*/
            };

            if (taskQueue != null)
            {
                taskQueue.Add(tqi);
                log.Information($"{item.ToDescription()} queued");
            }
            else
            {
                log.Information($"{item.ToDescription()} - not task queue available");
            }
        }