예제 #1
0
        public void Dispose()
        {
            libraryServices.LibraryLoaded -= LibraryLoaded;

            liveRunnerServices.Dispose();
            codeCompletionServices = null;
        }
예제 #2
0
        public void Dispose()
        {
            dynamoModel.NodeDeleted -= NodeDeleted;
            liveRunnerServices.Dispose();

            libraryServices.LibraryLoading    -= this.LibraryLoading;
            libraryServices.LibraryLoadFailed -= this.LibraryLoadFailed;
            libraryServices.LibraryLoaded     -= this.LibraryLoaded;
        }
예제 #3
0
        public void Dispose()
        {
            // This flag must be set immediately
            IsDisposed = true;

            libraryServices.LibraryLoaded -= LibraryLoaded;

            liveRunnerServices.Dispose();
            codeCompletionServices = null;
        }
예제 #4
0
        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();
        }