public void Dispose() { libraryServices.LibraryLoaded -= LibraryLoaded; liveRunnerServices.Dispose(); codeCompletionServices = null; }
public void Dispose() { dynamoModel.NodeDeleted -= NodeDeleted; liveRunnerServices.Dispose(); libraryServices.LibraryLoading -= this.LibraryLoading; libraryServices.LibraryLoadFailed -= this.LibraryLoadFailed; libraryServices.LibraryLoaded -= this.LibraryLoaded; }
public void Dispose() { // This flag must be set immediately IsDisposed = true; libraryServices.LibraryLoaded -= LibraryLoaded; liveRunnerServices.Dispose(); codeCompletionServices = null; }
public void Dispose() { dynamoModel.NodeDeleted -= NodeDeleted; liveRunnerServices.Dispose(); libraryServices.LibraryLoading -= this.LibraryLoading; libraryServices.LibraryLoadFailed -= this.LibraryLoadFailed; libraryServices.LibraryLoaded -= this.LibraryLoaded; // TODO: Find a better way to save loaded libraries. if (!DynamoModel.IsTestMode) { foreach (var library in libraryServices.ImportedLibraries) { DynamoPathManager.Instance.AddPreloadLibrary(library); } } libraryServices.Dispose(); codeCompletionServices = null; libraryCore.Cleanup(); }