Ejemplo n.º 1
0
        private static async Task <dynamic> DoAsyncClient(dynamic dexp, MethodDefinition def, params dynamic[] parameters)
        {
            Request req = CreateRequest(dexp, def, parameters);

            return(await SmallWebClient.RestRequest(req));
        }
Ejemplo n.º 2
0
        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);
        }