/// <summary> /// Allocate resources for a live event /// </summary> /// <remarks> /// A live event is in StandBy state after allocation completes, and is ready /// to start. /// </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 BeginAllocateAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginAllocateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }