public static MetadataFeature AddDebugLink(this MetadataFeature metadata, string href, string title) { if (metadata != null) { metadata.DebugLinks[href] = title; } return(metadata); }
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); }
public static MetadataFeature RemoveDebugLink(this MetadataFeature metadata, string href) { metadata.DebugLinks.Remove(href); return(metadata); }