private static async Task <dynamic> DoAsyncClient(dynamic dexp, MethodDefinition def, params dynamic[] parameters) { Request req = CreateRequest(dexp, def, parameters); return(await SmallWebClient.RestRequest(req)); }
private static dynamic DoSyncClient(dynamic dexp, MethodDefinition def, params dynamic[] parameters) { Request req = CreateRequest(dexp, def, parameters); return(Task.Run(async() => await SmallWebClient.RestRequest(req)).Result); }