Beispiel #1
0
 private string getServiceName(HttpServiceAttribute sattr, HttpApiAttribute mattr)
 {
     if (mattr != null && !string.IsNullOrWhiteSpace(mattr.ServiceName))
     {
         return(mattr.ServiceName);
     }
     if (sattr != null && !string.IsNullOrWhiteSpace(sattr.ServiceName))
     {
         return(sattr.ServiceName);
     }
     return(string.Empty);
 }
Beispiel #2
0
 private string getUrl(string url, HttpServiceAttribute attr)
 {
     if (!string.IsNullOrWhiteSpace(url))
     {
         return(url);
     }
     if (attr == null || string.IsNullOrWhiteSpace(attr.BaseUrl))
     {
         return(string.Empty);
     }
     return(attr.BaseUrl);
 }