private void OnBeforeClosing() { DefaultNuGetProjectName = null; _projectSystemCache.Clear(); _cacheInitialized = false; SolutionClosing?.Invoke(this, EventArgs.Empty); _solutionOpenedRaised = false; }
/// <summary> /// Handle the event when the solution has been closed /// </summary> private void OnAfterClosing() { IsSolutionClosing = true; try { _lastCollectedActiveProject = null; _ = Machines.DisposeMachinesAsync(); SolutionClosing?.Invoke(this, EventArgs.Empty); } finally { IsSolutionClosing = false; } }
private void OnBeforeClosing() { NuGetPowerShellUsage.RaiseSolutionCloseEvent(); SolutionClosing?.Invoke(this, EventArgs.Empty); }
private void OnBeforeClosing() { SolutionClosing?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Fires the <see cref="SolutionClosed"/> event /// </summary> protected virtual void OnSolutionClosing() { SolutionClosing?.Invoke(this, EventArgs.Empty); }
int IVsSolutionEvents.OnBeforeCloseSolution(object pUnkReserved) { SolutionClosing?.Invoke(this, new ParamEventArgs(pUnkReserved)); return(VSConstants.S_OK); }