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