/// <summary> /// Check Ethereum RPC is alive /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void ApiIsAliveRpcGet(this IChronobankApiClient operations) { System.Threading.Tasks.Task.Factory.StartNew(s => ((IChronobankApiClient)s).ApiIsAliveRpcGetAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Check Ethereum RPC 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 ApiIsAliveRpcGetAsync(this IChronobankApiClient operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.ApiIsAliveRpcGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Gets new ehtereum user contract and saves it for monitoring /// </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 <object> ApiClientRegisterGetAsync(this IChronobankApiClient operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.ApiClientRegisterGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }