你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JobRouterClient.UpdateWorker 方法

定义

重载

UpdateWorker(UpdateWorkerOptions, CancellationToken)

创建或更新辅助角色以处理作业。

UpdateWorker(String, RequestContent, RequestContext)

用于从辅助角色中删除属性的协议方法。

UpdateWorker(UpdateWorkerOptions, CancellationToken)

创建或更新辅助角色以处理作业。

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

参数

options
UpdateWorkerOptions

用于更新路由器辅助角色的选项。 使用合并修补语义: https://datatracker.ietf.org/doc/html/rfc7386

cancellationToken
CancellationToken

(可选) 要使用的取消令牌。

返回

例外

服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message

适用于

UpdateWorker(String, RequestContent, RequestContext)

用于从辅助角色中删除属性的协议方法。

public virtual Azure.Response UpdateWorker (string workerId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member UpdateWorker : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.UpdateWorker : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function UpdateWorker (workerId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response

参数

workerId
String

辅助角色的 ID。

content
RequestContent

请求内容有效负载。

context
RequestContext

请求上下文,它可以基于每个调用替代客户端管道的默认行为。

返回

例外

服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message

适用于