Beispiel #1
0
        public async Task find_escrows()
        {
            var args = new FindEscrowsArgs();
            var resp = await Api.FindEscrowsAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Beispiel #2
0
        public void find_escrows()
        {
            var args = new FindEscrowsArgs();
            var resp = Api.FindEscrows(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.DatabaseApi, "find_escrows", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Beispiel #3
0
 /// <summary>
 /// API name: find_escrows
 ///
 /// </summary>
 /// <param name="args">API type: find_escrows_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: find_escrows_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <FindEscrowsReturn> > FindEscrows(FindEscrowsArgs args, CancellationToken token)
 {
     return(CustomGetRequest <FindEscrowsReturn>(KnownApiNames.DatabaseApi, "find_escrows", args, token));
 }