次の方法で共有


JobRouterClient.UpdateWorker Method

Definition

Overloads

UpdateWorker(RouterWorker, RequestConditions, CancellationToken)

Update a worker to process jobs.

UpdateWorker(String, RequestContent, RequestConditions, RequestContext)

[Protocol Method] Updates a worker.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

UpdateWorker(RouterWorker, RequestConditions, CancellationToken)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

Update a worker to process jobs.

public virtual Azure.Response<Azure.Communication.JobRouter.RouterWorker> UpdateWorker (Azure.Communication.JobRouter.RouterWorker worker, Azure.RequestConditions requestConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateWorker : Azure.Communication.JobRouter.RouterWorker * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterWorker>
override this.UpdateWorker : Azure.Communication.JobRouter.RouterWorker * Azure.RequestConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterWorker>
Public Overridable Function UpdateWorker (worker As RouterWorker, Optional requestConditions As RequestConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RouterWorker)

Parameters

worker
RouterWorker

Worker to update. Uses merge-patch semantics: https://datatracker.ietf.org/doc/html/rfc7396.

requestConditions
RequestConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to

UpdateWorker(String, RequestContent, RequestConditions, RequestContext)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

[Protocol Method] Updates a worker.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response UpdateWorker (string workerId, Azure.Core.RequestContent content, Azure.RequestConditions requestConditions = default, Azure.RequestContext context = default);
abstract member UpdateWorker : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
override this.UpdateWorker : string * Azure.Core.RequestContent * Azure.RequestConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function UpdateWorker (workerId As String, content As RequestContent, Optional requestConditions As RequestConditions = Nothing, Optional context As RequestContext = Nothing) As Response

Parameters

workerId
String

Id of a worker.

content
RequestContent

The content to send as the body of the request.

requestConditions
RequestConditions

The content to send as the request conditions of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

workerId or content is null.

workerId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to