/// <summary> /// Creates a disribution goup which can be shared across apps under an /// organization /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='orgName'> /// The organization's name /// </param> /// <param name='distributionGroup'> /// The attributes to update for the distribution group /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DistributionGroupResponse> CreateForOrgAsync(this IDistributionGroups operations, string orgName, DistributionGroupRequest distributionGroup, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateForOrgWithHttpMessagesAsync(orgName, distributionGroup, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }