/// <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> public static void Stop(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool?removeOutputsOnStop = default(bool?)) { operations.StopAsync(resourceGroupName, accountName, liveEventName, removeOutputsOnStop).GetAwaiter().GetResult(); }