コード例 #1
0
 public void QueueTask(BackgroundTask task)
 {
     Initialize();
     _taskQueue.Enqueue(task);
 }
コード例 #2
0
 public void Enqueue(BackgroundTask task)
 {
     _taskQueue.Enqueue(task);
 }
コード例 #3
0
 private void ExecuteTask(BackgroundTask task)
 {
     // ripe for more logic here, but this is a toolkit...
     // ideally we would probably be supplying open db connections
     // or db contexts and letting the task use those...
     task.Run();
 }