Exemplo n.º 1
0
 public static ShortTermJobQueue Instance()
 {
     if (instance == null)
     {
         instance = new ShortTermJobQueue();
     }
     else
     {
         if (!instance.IsBusy)
         {
             SimpleLogging.LogMessage("Warning!  Call to ShortTermJobQueue.Instance() returning a stopped background worker");
         }
     }
     return(instance);
 }
Exemplo n.º 2
0
 public static void Shutdown()
 {
     Instance().CancelAsync();
     SimpleLogging.LogMessage("ShortTermJobQueue shutting down..");
     instance = null;
 }