Beispiel #1
0
 /// <summary>
 /// Send logs to the Ingestion service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appSecret'>
 /// A unique and secret key used to identify the application.
 /// </param>
 /// <param name='installID'>
 /// Installation identifier.
 /// </param>
 /// <param name='parameters'>
 /// Payload.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task SendAsync(this IAvalancheIngestion operations, System.Guid appSecret, System.Guid installID, LogContainer parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.SendWithHttpMessagesAsync(appSecret, installID, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Beispiel #2
0
 /// <summary>
 /// Send logs to the Ingestion service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appSecret'>
 /// A unique and secret key used to identify the application.
 /// </param>
 /// <param name='installID'>
 /// Installation identifier.
 /// </param>
 /// <param name='parameters'>
 /// Payload.
 /// </param>
 public static void Send(this IAvalancheIngestion operations, System.Guid appSecret, System.Guid installID, LogContainer parameters)
 {
     operations.SendAsync(appSecret, installID, parameters).GetAwaiter().GetResult();
 }