/// <summary> /// Returns a list of distribution groups in the org specified /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='orgName'> /// The organization's name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <DistributionGroupResponse> > ListForOrgAsync(this IDistributionGroups operations, string orgName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListForOrgWithHttpMessagesAsync(orgName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }