/// <summary>
 /// Accepts all pending invitations to distribution groups for the specified
 /// user
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AcceptAllAsync(this IDistributionGroupInvitations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.AcceptAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Accepts all pending invitations to distribution groups for the specified
 /// user
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void AcceptAll(this IDistributionGroupInvitations operations)
 {
     operations.AcceptAllAsync().GetAwaiter().GetResult();
 }