Ejemplo n.º 1
0
        private DocumentationProvider GetDocumentationProvider(string location)
        {
            if (File.Exists(Path.ChangeExtension(location, "xml")))
            {
                return(_documentationProviderService.GetDocumentationProvider(location));
            }

            return(GetDocumentationProviderFromPath(_documentationPath, location) ??
                   GetDocumentationProviderFromPath(_referenceAssembliesPath, location));
        }
Ejemplo n.º 2
0
 private DocumentationProvider GetDocumentationProvider(string location)
 {
     if (File.Exists(Path.ChangeExtension(location, "xml")))
     {
         return(_documentationProviderService.GetDocumentationProvider(location));
     }
     if (_referenceAssembliesPath != null)
     {
         // ReSharper disable once AssignNullToNotNullAttribute
         var referenceLocation = Path.Combine(_referenceAssembliesPath, Path.GetFileName(location));
         if (File.Exists(Path.ChangeExtension(referenceLocation, "xml")))
         {
             return(_documentationProviderService.GetDocumentationProvider(referenceLocation));
         }
     }
     return(null);
 }
Ejemplo n.º 3
0
 private DocumentationProvider GetDocumentationProvider(string location)
 {
     if (_referenceAssembliesPath != null)
     {
         var fileName = Path.GetFileName(location);
         // ReSharper disable once AssignNullToNotNullAttribute
         var referenceLocation = Path.Combine(_referenceAssembliesPath, fileName);
         if (File.Exists(referenceLocation))
         {
             location = referenceLocation;
         }
     }
     return(_documentationProviderService.GetDocumentationProvider(location));
 }