/// <summary> /// Gets a list of integration service environments by resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='top'> /// The number of items to be included in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <IntegrationServiceEnvironment> > ListByResourceGroupAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroup, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }