private void OnPushableEvent(OnPushableEventArgs e) { lock (_tasks) { if (_tasks.ContainsKey(e.SourcePath)) { return; } _tasks.Add(e.SourcePath, e.TargetPath); } }
private void RaisePushRequiredEvent(string sourcePath, string targetPath) { OnPushableEventHandler temp = OnPushable; if (temp != null) { var eventArgs = new OnPushableEventArgs(sourcePath, targetPath); temp(eventArgs); } }