コード例 #1
0
ファイル: EditorDocument.cs プロジェクト: waldow90/Razor-1
        public void ProcessClose()
        {
            _closed?.Invoke(this, EventArgs.Empty);

            _snapshotTracker.StopTracking(EditorTextBuffer);

            EditorTextContainer.TextChanged -= TextContainer_Changed;
            EditorTextContainer              = null;
            EditorTextBuffer = null;

            _fileTracker.StartListening();
        }
コード例 #2
0
        public void ProcessClose()
        {
            _closed?.Invoke(this, EventArgs.Empty);

            _snapshotTracker.StopTracking(EditorTextBuffer);

            EditorTextContainer.TextChanged -= TextContainer_Changed;
            EditorTextContainer              = null;
            EditorTextBuffer = null;

            _ = _projectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(
                () => _fileTracker.StartListening(), CancellationToken.None);
        }