Esempio n. 1
0
 public void ScriptChanged(VM.Interpreter script)
 {
     lock (_scriptChangeLock)
     {
         _dirtyScripts[script.ItemId] = script;
         if (!_delayQueue.ContainsKey(script.ItemId))
         {
             _delayQueue.Add(script.ItemId, DateTime.Now + SAVE_INTERVAL);
             _scheduler.RequestStateData(new StateDataRequest(script.ItemId, this.StateAvailable));
         }
     }
 }
Esempio n. 2
0
 private bool CheckNonceID(long nonceID)
 {
     lock (_pastDeletes)
     {
         FlushExpiredDeletes();
         if (_pastDeletes.ContainsKey(nonceID))
         {
             _pastDeletes.Remove(nonceID);
             return(true);
         }
     }
     return(false);
 }