/// <summary> /// Start Live Event /// </summary> /// <remarks> /// A live event in Stopped or StandBy state will be in Running state after the /// start operation completes. /// </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='cancellationToken'> /// The cancellation token. /// </param> public static async Task StartAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.StartWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }