Esempio n. 1
0
 public void Update(TimeSpan elapsed)
 {
     while (this.QueuedTasks.Count > 0)
     {
         DBTask task = this.QueuedTasks.Dequeue();
         if (DBSessions.Instance.Connection != null)
         {
             task.Execute(DBSessions.Instance.Connection);
         }
         else
         {
             Logging.LogManager.DefaultLogger.Error("could not execute db task because connection is null!");
         }
     }
 }
Esempio n. 2
0
 public void ConcurrentExecuteTask(DBTask dbtask)
 {
     this.QueuedTasks.Enqueue(dbtask);
 }