protected override async Task DisposeCoreUnderLockAsync(bool initialized) { if (initialized) { _subscriptions?.Dispose(); _applyChangesToWorkspaceContext?.Dispose(); if (_context != null) { await _workspaceProjectContextProvider.ReleaseProjectContextAsync(_context); } } }
protected override async Task DisposeCoreUnderLockAsync(bool initialized) { if (initialized) { _disposables?.Dispose(); if (_contextAccessor != null) { _activeWorkspaceProjectContextTracker.UnregisterContext(_contextAccessor.ContextId); await _workspaceProjectContextProvider.ReleaseProjectContextAsync(_contextAccessor); } } }
protected override async Task DisposeCoreUnderLockAsync(bool initialized) { if (initialized) { _subscriptions?.Dispose(); _applyChangesToWorkspaceContext?.Dispose(); if (_contextAccessor != null) { _activeWorkspaceProjectContextTracker.UnregisterContext(_contextAccessor.Context); await _workspaceProjectContextProvider.ReleaseProjectContextAsync(_contextAccessor); } } }