public Uri GetDocumentation(DocumentationTypes documentationType)
        {
            if (_configuration.Enabled &&
                _configuration.DocumentationRootUrlString.HasValue &&
                documentationType == DocumentationTypes.Configuration)
            {
                return(new Uri(_configuration.DocumentationRootUrlString.Value, UriKind.Relative));
            }

            return(null);
        }
        Uri ISelfDocumenting.GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Pages/wiki"));

            case DocumentationTypes.SourceCode:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Pages"));
            }
            return(null);
        }
示例#3
0
        Uri ISelfDocumenting.GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));

            case DocumentationTypes.SourceCode:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));
            }
            return(null);
        }
        Uri ISelfDocumenting.GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Configuration:
                return(new Uri(_configuration.Path + _configDocsPath, UriKind.Relative));

            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));
            }
            return(null);
        }
示例#5
0
        public Uri GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Configuration:
                return(new Uri(_configuration.DocumentationRootUrl, UriKind.Relative));

            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));

            case DocumentationTypes.SourceCode:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware/tree/master/OwinFramework.Versioning", UriKind.Absolute));
            }
            return(null);
        }
示例#6
0
        Uri ISelfDocumenting.GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Configuration:
                return(new Uri(_documentationPath.Value, UriKind.Relative));

            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));

            case DocumentationTypes.TechnicalDetails:
            case DocumentationTypes.SourceCode:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware/tree/master/OwinFramework.RouteVisualizer", UriKind.Absolute));
            }
            return(null);
        }
        Uri ISelfDocumenting.GetDocumentation(DocumentationTypes documentationType)
        {
            switch (documentationType)
            {
            case DocumentationTypes.Configuration:
                return(string.IsNullOrEmpty(_configuration.DocumentationRootUrl)
                        ? null
                        : new Uri(_configuration.DocumentationRootUrl, UriKind.Relative));

            case DocumentationTypes.Overview:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware", UriKind.Absolute));

            case DocumentationTypes.SourceCode:
                return(new Uri("https://github.com/Bikeman868/OwinFramework.Middleware/tree/master/OwinFramework.RouteVisualizer", UriKind.Absolute));
            }
            return(null);
        }
示例#8
0
 /// <summary>
 /// Tag a class or member with a documentation string for use in
 /// online help and automatic generation of the manual.
 /// </summary>
 public DocumentationAttribute(string description, DocumentationTypes manualVersion)  // url is a positional parameter
 {
     Description   = description;
     ManualVersion = manualVersion;
 }
 // url is a positional parameter
 /// <summary>
 /// Tag a class or member with a documentation string for use in
 /// online help and automatic generation of the manual.
 /// </summary>
 public DocumentationAttribute(string description, DocumentationTypes manualVersion)
 {
     Description = description;
     ManualVersion = manualVersion;
 }
示例#10
0
 /// <summary>
 /// Tag a class or member with a documentation string for use in
 /// online help and automatic generation of the manual.
 /// </summary>
 public DocumentationAttribute(string description, DocumentationTypes manualVersion)  // url is a positional parameter
 {
     Description = description;
     ManualVersion = manualVersion;
 }