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

            AfterLoadProject?.Invoke(this, new ProjectLoadedEventArgs(pStubHierarchy, pRealHierarchy));
            return(VSConstants.S_OK);
        }
Exemplo n.º 2
0
        int IVsSolutionEvents.OnAfterLoadProject(IVsHierarchy pStubHierarchy, IVsHierarchy pRealHierarchy)
        {
            var realHierarchy = new Hierarchy(this, pStubHierarchy, HierarchyId.Root);
            var stubHierarchy = new Hierarchy(this, pRealHierarchy, HierarchyId.Root);

            AfterLoadProject?.Invoke(this, new ProjectEventArgs(realHierarchy, stubHierarchy));

            return(VSConstants.S_OK);
        }
Exemplo n.º 3
0
 public int OnAfterLoadProject(IVsHierarchy stubHierarchy, IVsHierarchy realHierarchy)
 {
     return(AfterLoadProject?.Invoke(stubHierarchy, realHierarchy) ?? VSConstants.S_OK);
 }
Exemplo n.º 4
0
 int IVsSolutionEvents.OnAfterLoadProject(IVsHierarchy pStubHierarchy, IVsHierarchy pRealHierarchy)
 {
     AfterLoadProject?.Invoke(this, new LoadProjectEventArgs(pRealHierarchy, pStubHierarchy));
     return(0);
 }
Exemplo n.º 5
0
 int IVsSolutionEvents.OnAfterLoadProject(IVsHierarchy pStubHierarchy, IVsHierarchy pRealHierarchy)
 {
     AfterLoadProject?.Invoke(this, EventArgs.Empty);
     return(VSConstants.S_OK);
 }