Пример #1
0
 private void OnPushableEvent(OnPushableEventArgs e)
 {
     lock (_tasks)
     {
         if (_tasks.ContainsKey(e.SourcePath))
         {
             return;
         }
         _tasks.Add(e.SourcePath, e.TargetPath);
     }
 }
Пример #2
0
 private void RaisePushRequiredEvent(string sourcePath, string targetPath)
 {
     OnPushableEventHandler temp = OnPushable;
     if (temp != null)
     {
         var eventArgs = new OnPushableEventArgs(sourcePath, targetPath);
         temp(eventArgs);
     }
 }