/// <summary> /// Updates a task with the specified parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='taskName'> /// The name of the container registry task. /// </param> /// <param name='taskUpdateParameters'> /// The parameters for updating a task. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <Task> BeginUpdateAsync(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, registryName, taskName, taskUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a task with the specified parameters. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='taskName'> /// The name of the container registry task. /// </param> /// <param name='taskUpdateParameters'> /// The parameters for updating a task. /// </param> public static Task BeginUpdate(this ITasksOperations operations, string resourceGroupName, string registryName, string taskName, TaskUpdateParameters taskUpdateParameters) { return(operations.BeginUpdateAsync(resourceGroupName, registryName, taskName, taskUpdateParameters).GetAwaiter().GetResult()); }