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"); }
public void QueueTask(TaskItem item) { var tqi = new TaskQueueItem { TaskItemId = item.Id, Type = item.Type }; TaskQueue.Add(tqi); log.Information($"{item.ToDescription()} queued"); }
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"); } }