public int OnBeforeUnloadProject(IVsHierarchy pRealHierarchy, IVsHierarchy pStubHierarchy)
        {
            _logger?.LogEventMessage($"StubHierarchy: {Utils.GetName(pStubHierarchy)}, RealHierarchy: {Utils.GetName(pRealHierarchy)}");

            BeforeUnloadProject?.Invoke(this, new ProjectUnloadingEventArgs(pStubHierarchy, pRealHierarchy));
            return(VSConstants.S_OK);
        }
Exemple #2
0
        int IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy pRealHierarchy, IVsHierarchy pStubHierarchy)
        {
            var realHierarchy = new Hierarchy(this, pStubHierarchy, HierarchyId.Root);
            var stubHierarchy = new Hierarchy(this, pRealHierarchy, HierarchyId.Root);

            BeforeUnloadProject?.Invoke(this, new ProjectEventArgs(realHierarchy, stubHierarchy));
            return(VSConstants.S_OK);
        }
Exemple #3
0
        int IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy pRealHierarchy, IVsHierarchy pStubHierarchy)
        {
            BeforeUnloadProject?.Invoke(this, new ParamEventArgs(pRealHierarchy, pStubHierarchy));

            return(VSConstants.S_OK);
        }