public static ServiceAttributeInfo TryGetHttpAttribute(this IServiceElementInfo element) { return(element.TryGetAttribute("http")); }
public static IReadOnlyList <ServiceAttributeParameterInfo> GetHttpParameters(this IServiceElementInfo element) { return(element.TryGetAttribute("http")?.Parameters ?? new ServiceAttributeParameterInfo[0]); }
private static string TryGetCSharpName(IServiceElementInfo element) { return(element?.TryGetAttribute("csharp")?.Parameters.SingleOrDefault(x => x.Name == "name")?.Value); }
private static string TryGetJavaScriptName(IServiceElementInfo element) { return(element?.TryGetAttribute("javascript")?.Parameters.SingleOrDefault(x => x.Name == "name")?.Value); }
private static ServiceAttributeInfo TryGetObsoleteAttribute(this IServiceElementInfo element) { return(element.TryGetAttribute("obsolete")); }