Example #1
0
 private string getMethodName(string methodName, HttpApiAttribute mattr)
 {
     if (mattr != null && !string.IsNullOrWhiteSpace(mattr.MethodName))
     {
         return(mattr.MethodName);
     }
     return(methodName);
 }
Example #2
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);
 }