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

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

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

            return(await ethCoinBase.SendRequestAsync());
        }