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