Ejemplo n.º 1
0
 public async Task<bool> Perform(Action action, IEnumerable<string> hashes)
 {
     var argParams = new object[2];
     argParams[0] = action.ToString().ToLower();
     argParams[1] = hashes;
     var response = await SendJsonrpcRequest("webui.perform", argParams);
     // https://github.com/hadouken/hadouken/blob/develop/js/rpc/webui_perform.js
     return response.IsSuccessStatusCode;
 }
Ejemplo n.º 2
0
 public async Task<bool> Perform(Action action, string hash)
 {
     return await Perform(action, new[] {hash});
 }