public ParseService(IUnsavedFileProvider unsavedProvider) { _lock = new object(); _unsavedFileProvider = unsavedProvider; _parseThreads = new ParseThreads(); _parsedVersions = new Dictionary<FilePath, ulong>(); _parseThreads.Run = true; Services.Provider.WorkspaceController.WorkspaceChanged += OnWorkspaceChanged; }
public void Dispose() { if (_parseThreads == null) return; _parseThreads.Run = false; _parseThreads = null; }