Example #1
0
 public static MetadataFeature AddDebugLink(this MetadataFeature metadata, string href, string title)
 {
     if (metadata != null)
     {
         metadata.DebugLinks[href] = title;
     }
     return(metadata);
 }
Example #2
0
        public static MetadataFeature AddDebugLink(this MetadataFeature metadata, string href, string title)
        {
            if (metadata != null)
            {
                if (HostContext.Config.HandlerFactoryPath != null && href[0] == '/')
                {
                    href = "/" + HostContext.Config.HandlerFactoryPath + href;
                }

                metadata.DebugLinks[href] = title;
            }
            return(metadata);
        }
Example #3
0
 public static MetadataFeature RemoveDebugLink(this MetadataFeature metadata, string href)
 {
     metadata.DebugLinks.Remove(href);
     return(metadata);
 }