private string GetMethodName() { string genericArgs = null; if (methodConfig.MethodDef.GenericArgs.Count > 0) { genericArgs = string.Join(", ", methodConfig.MethodDef.GenericArgs.Select(a => a.Name)); } var methodName = methodConfig.GetMethodName(methodConfig.MethodDef.Name, genericArgs); return(methodName); }
private string CallUnescapedMethod(string name, string genericArgs, string args, bool needsSurroundingBrackets = false) { switch (methodConfig.MethodType) { case MethodType.Synchronous: args = args.Replace("{Request}", "").Replace("{RequestLambda}", ""); break; case MethodType.Asynchronous: args = args.Replace("{Request}", "Async").Replace("{RequestLambda}", "async "); break; } var methodName = methodConfig.GetMethodName(name, genericArgs); return(CallEscapedMethod(methodName, args, needsSurroundingBrackets)); }