示例#1
0
 public static ServiceAttributeInfo TryGetHttpAttribute(this IServiceElementInfo element)
 {
     return(element.TryGetAttribute("http"));
 }
示例#2
0
 public static IReadOnlyList <ServiceAttributeParameterInfo> GetHttpParameters(this IServiceElementInfo element)
 {
     return(element.TryGetAttribute("http")?.Parameters ?? new ServiceAttributeParameterInfo[0]);
 }
示例#3
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);
 }
示例#5
0
 private static ServiceAttributeInfo TryGetObsoleteAttribute(this IServiceElementInfo element)
 {
     return(element.TryGetAttribute("obsolete"));
 }