Esempio n. 1
0
 internal override DocumentMapNode GetDocumentMap(string rootLabel)
 {
     try
     {
         lock (m_syncObject)
         {
             if (!m_processingHost.ExecutionInfo.HasSnapshot)
             {
                 throw new InvalidOperationException(CommonStrings.ReportNotReady);
             }
             IDocumentMap documentMap;
             try
             {
                 documentMap = m_processingHost.GetDocumentMap();
             }
             catch (Exception processingException)
             {
                 throw WrapProcessingException(processingException);
             }
             return(DocumentMapNode.CreateTree(documentMap, rootLabel));
         }
     }
     catch (SecurityException processingException2)
     {
         throw new LocalProcessingException(CommonStrings.LocalModeMissingFullTrustErrors, processingException2);
     }
 }
 public DocumentMapNode GetDocumentMap(string rootLabel)
 {
     return(DocumentMapNode.CreateTree(Service.GetDocumentMap(), rootLabel));
 }