Ejemplo n.º 1
0
        public async Task find_witnesses()
        {
            var args = new FindWitnessesArgs
            {
                Owners = new[] { User.Login }
            };
            var resp = await Api.FindWitnessesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Ejemplo n.º 2
0
        public void find_witnesses()
        {
            var args = new FindWitnessesArgs()
            {
                Owners = new[] { User.Login }
            };
            var resp = Api.FindWitnesses(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// API name: find_witnesses
 ///
 /// </summary>
 /// <param name="args">API type: find_witnesses_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: find_witnesses_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public Task <JsonRpcResponse <FindWitnessesReturn> > FindWitnesses(FindWitnessesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <FindWitnessesReturn>(KnownApiNames.DatabaseApi, "find_witnesses", args, token));
 }