/// <summary> /// Creates or updates an integration service environment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroup'> /// The resource group. /// </param> /// <param name='integrationServiceEnvironmentName'> /// The integration service environment name. /// </param> /// <param name='integrationServiceEnvironment'> /// The integration service environment. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IntegrationServiceEnvironment> CreateOrUpdateAsync(this IIntegrationServiceEnvironmentsOperations operations, string resourceGroup, string integrationServiceEnvironmentName, IntegrationServiceEnvironment integrationServiceEnvironment, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroup, integrationServiceEnvironmentName, integrationServiceEnvironment, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }