Exemplo n.º 1
0
 /// <summary>
 /// Create or update a web service. This call will overwrite an existing web
 /// service. Note that there is no warning or confirmation. This is a
 /// nonrecoverable operation. If your intent is to create a new web service,
 /// call the Get operation first to verify that it does not exist.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group in which the web service is located.
 /// </param>
 /// <param name='webServiceName'>
 /// The name of the web service.
 /// </param>
 /// <param name='createOrUpdatePayload'>
 /// The payload that is used to create or update the web service.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WebServiceInner> CreateOrUpdateAsync(this IWebServicesOperations operations, string resourceGroupName, string webServiceName, WebServiceInner createOrUpdatePayload, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, webServiceName, createOrUpdatePayload, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }