Exemplo n.º 1
0
 /// <summary>
 /// Check Ethereum RPC is alive
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void ApiIsAliveRpcGet(this IQuantaApiClient operations)
 {
     System.Threading.Tasks.Task.Factory.StartNew(s => ((IQuantaApiClient)s).ApiIsAliveRpcGetAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemplo n.º 2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='address'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> ApiClientIsQuantaUserGetAsync(this IQuantaApiClient operations, string address = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.ApiClientIsQuantaUserGetWithHttpMessagesAsync(address, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check API is alive
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task ApiIsAliveGetAsync(this IQuantaApiClient operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.ApiIsAliveGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
 }
Exemplo n.º 4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='address'>
 /// </param>
 public static object ApiClientIsQuantaUserGet(this IQuantaApiClient operations, string address = default(string))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IQuantaApiClient)s).ApiClientIsQuantaUserGetAsync(address), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }