Exemplo n.º 1
0
 /// <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 KeyAsync(this IGetSystemSessionApi operations, string aPIKey, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.KeyWithHttpMessagesAsync(aPIKey, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 2
0
 /// <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 Key(this IGetSystemSessionApi operations, string aPIKey)
 {
     operations.KeyAsync(aPIKey).GetAwaiter().GetResult();
 }