/// <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(); }
/// <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); } }
/// <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); }
/// <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()); }