private void FireImportChanged(string importPath, ImportChangeKind kind) { _foregroundDispatcher.AssertForegroundThread(); var handler = Changed; if (handler != null && _importTrackerCache.TryGetValue(importPath, out var importTracker)) { var args = new ImportChangedEventArgs(importPath, kind, importTracker.AssociatedDocuments); handler(this, args); } }
public ImportChangedEventArgs(string filePath, ImportChangeKind kind, IEnumerable <string> associatedDocuments) { FilePath = filePath; Kind = kind; AssociatedDocuments = associatedDocuments; }