/// <summary>
 /// Stop Live Event
 /// </summary>
 /// <remarks>
 /// Stops a running live event.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='removeOutputsOnStop'>
 /// The flag indicates whether live outputs are automatically deleted when live
 /// event is being stopped. Deleting live outputs do not delete the underlying
 /// assets.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginStopAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool?removeOutputsOnStop = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginStopWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, removeOutputsOnStop, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }