Example #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");
        }
Example #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");
        }
Example #3
0
        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");
            }
        }