/// <summary> /// API Heartbeat Monitoring /// </summary> /// <remarks> /// Endpoint used for Heartbeat Monitoring. Monitoring will use this endpoint /// to check if the API is up and available. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='aPIKey'> /// Client API Key /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PingApiAsync(this IGetSystemApi operations, string aPIKey, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PingApiWithHttpMessagesAsync(aPIKey, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// API Heartbeat Monitoring /// </summary> /// <remarks> /// Endpoint used for Heartbeat Monitoring. Monitoring will use this endpoint /// to check if the API is up and available. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='aPIKey'> /// Client API Key /// </param> public static void PingApi(this IGetSystemApi operations, string aPIKey) { operations.PingApiAsync(aPIKey).GetAwaiter().GetResult(); }