private void OnBeforeClosing()
        {
            DefaultNuGetProjectName = null;
            _projectSystemCache.Clear();
            _cacheInitialized = false;

            SolutionClosing?.Invoke(this, EventArgs.Empty);

            _solutionOpenedRaised = false;
        }
示例#2
0
 /// <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;
     }
 }
示例#3
0
        private void OnBeforeClosing()
        {
            NuGetPowerShellUsage.RaiseSolutionCloseEvent();

            SolutionClosing?.Invoke(this, EventArgs.Empty);
        }
示例#4
0
 private void OnBeforeClosing()
 {
     SolutionClosing?.Invoke(this, EventArgs.Empty);
 }
示例#5
0
 /// <summary>
 /// Fires the <see cref="SolutionClosed"/> event
 /// </summary>
 protected virtual void OnSolutionClosing()
 {
     SolutionClosing?.Invoke(this, EventArgs.Empty);
 }
示例#6
0
        int IVsSolutionEvents.OnBeforeCloseSolution(object pUnkReserved)
        {
            SolutionClosing?.Invoke(this, new ParamEventArgs(pUnkReserved));

            return(VSConstants.S_OK);
        }