/// <summary> /// Updates a Service Fabric service resource. /// </summary> /// <remarks> /// Update a Service Fabric service resource with the specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='applicationName'> /// The name of the application resource. /// </param> /// <param name='serviceName'> /// The name of the service resource in the format of /// {applicationName}~{serviceName}. /// </param> /// <param name='parameters'> /// The service resource for patch operations. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ServiceResourceUpdate> BeginUpdateAsync(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceResourceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a Service Fabric service resource. /// </summary> /// <remarks> /// Update a Service Fabric service resource with the specified name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterName'> /// The name of the cluster resource. /// </param> /// <param name='applicationName'> /// The name of the application resource. /// </param> /// <param name='serviceName'> /// The name of the service resource in the format of /// {applicationName}~{serviceName}. /// </param> /// <param name='parameters'> /// The service resource for patch operations. /// </param> public static ServiceResourceUpdate BeginUpdate(this IServicesOperations operations, string resourceGroupName, string clusterName, string applicationName, string serviceName, ServiceResourceUpdate parameters) { return(operations.BeginUpdateAsync(resourceGroupName, clusterName, applicationName, serviceName, parameters).GetAwaiter().GetResult()); }