/// <summary> /// Enable a receiver in an action group. This changes the receiver's status /// from Disabled to Enabled. This operation is only supported for Email or SMS /// receivers. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='actionGroupName'> /// The name of the action group. /// </param> /// <param name='receiverName'> /// The name of the receiver to resubscribe. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task EnableReceiverAsync(this IActionGroupsOperations operations, string resourceGroupName, string actionGroupName, string receiverName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.EnableReceiverWithHttpMessagesAsync(resourceGroupName, actionGroupName, receiverName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }