Exemple #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));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #4
0
        public async Task <dynamic> ExecuteTestAsync(RpcClient client)
        {
            var ethCoinBase = new EthCoinBase(client);

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

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

            return(await ethCoinBase.SendRequestAsync());
        }