private static Dictionary<string, AsyncMethodInfo> InternalGetAjaxMethods(Type type) { var ret = new Dictionary<string, AsyncMethodInfo>(); var mis = CoreHelper.GetMethodsFromType(type); foreach (MethodInfo mi in mis) { string methodName = mi.Name; var method = CoreHelper.GetMemberAttribute<AjaxMethodAttribute>(mi); if (method != null) { if (!string.IsNullOrEmpty(method.Name)) { methodName = method.Name; } if (!ret.ContainsKey(methodName)) { AsyncMethodInfo asyncMethod = new AsyncMethodInfo(); asyncMethod.Method = mi; asyncMethod.Async = method.Async; ret[methodName] = asyncMethod; } } } return ret; }
private static Dictionary <string, AsyncMethodInfo> InternalGetAjaxMethods(Type type) { var ret = new Dictionary <string, AsyncMethodInfo>(); var mis = CoreHelper.GetMethodsFromType(type); foreach (MethodInfo mi in mis) { string methodName = mi.Name; var method = CoreHelper.GetMemberAttribute <AjaxMethodAttribute>(mi); if (method != null) { if (!string.IsNullOrEmpty(method.Name)) { methodName = method.Name; } if (!ret.ContainsKey(methodName)) { AsyncMethodInfo asyncMethod = new AsyncMethodInfo(); asyncMethod.Method = mi; asyncMethod.Async = method.Async; ret[methodName] = asyncMethod; } } } return(ret); }