/// <summary> /// Simulate security alerts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='properties'> /// Alert Simulator request body data. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginSimulateAsync(this IAlertsOperations operations, AlertSimulatorRequestProperties properties = default(AlertSimulatorRequestProperties), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginSimulateWithHttpMessagesAsync(properties, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Simulate security alerts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='properties'> /// Alert Simulator request body data. /// </param> public static void BeginSimulate(this IAlertsOperations operations, AlertSimulatorRequestProperties properties = default(AlertSimulatorRequestProperties)) { operations.BeginSimulateAsync(properties).GetAwaiter().GetResult(); }