Exemplo n.º 1
0
 public async Task <bool> SendRequestAsync(EthCoinBase coinbaseRequest, string passPhrase,
                                           HexBigInteger durationInSeconds,
                                           object id = null)
 {
     return
         (await
          base.SendRequestAsync(id, await coinbaseRequest.SendRequestAsync(), passPhrase, durationInSeconds)
          .ConfigureAwait(false));
 }
Exemplo n.º 2
0
 public async Task <bool> SendRequestAsync(EthCoinBase coinbaseRequest, string passPhrase,
                                           object id = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     if (coinbaseRequest == null)
     {
         throw new ArgumentNullException(nameof(coinbaseRequest));
     }
     if (passPhrase == null)
     {
         throw new ArgumentNullException(nameof(passPhrase));
     }
     return
         (await
          base.SendRequestAsync(id, cancellationToken, await coinbaseRequest.SendRequestAsync(cancellationToken), passPhrase)
          .ConfigureAwait(false));
 }
Exemplo n.º 3
0
 public async Task <bool> SendRequestAsync(EthCoinBase coinbaseRequest, string passPhrase,
                                           HexBigInteger durationInSeconds,
                                           object id = null)
 {
     if (coinbaseRequest == null)
     {
         throw new ArgumentNullException(nameof(coinbaseRequest));
     }
     if (passPhrase == null)
     {
         throw new ArgumentNullException(nameof(passPhrase));
     }
     return
         (await
          base.SendRequestAsync(id, await coinbaseRequest.SendRequestAsync(), passPhrase, durationInSeconds)
          .ConfigureAwait(false));
 }
Exemplo n.º 4
0
        public async Task <dynamic> ExecuteTestAsync(RpcClient client)
        {
            var ethCoinBase = new EthCoinBase(client);

            return(await ethCoinBase.SendRequestAsync());
        }
Exemplo n.º 5
0
        public async Task <object> ExecuteTestAsync(IClient client)
        {
            var ethCoinBase = new EthCoinBase(client);

            return(await ethCoinBase.SendRequestAsync());
        }
Exemplo n.º 6
0
 public async Task<dynamic> ExecuteTestAsync(RpcClient client)
 {
     var ethCoinBase = new EthCoinBase(client);
     return await ethCoinBase.SendRequestAsync();
 }
Exemplo n.º 7
0
        public override async Task <string> ExecuteAsync(IClient client)
        {
            var ethCoinBase = new EthCoinBase(client);

            return(await ethCoinBase.SendRequestAsync());
        }