Share via


JobRouterClient.ReclassifyJobAsync Method

Definition

Overloads

ReclassifyJobAsync(String, CancellationToken)

Reclassify a job.

ReclassifyJobAsync(String, RequestContent, RequestContext)

[Protocol Method] Reclassify a job.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
  • Please try the simpler Azure.Communication.JobRouter.JobRouterClient.ReclassifyJobAsync(System.String,Azure.Communication.JobRouter.ReclassifyJobOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.

ReclassifyJobAsync(String, CancellationToken)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

Reclassify a job.

public virtual System.Threading.Tasks.Task<Azure.Response> ReclassifyJobAsync (string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member ReclassifyJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.ReclassifyJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ReclassifyJobAsync (jobId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

jobId
String

The id of a job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

Applies to

ReclassifyJobAsync(String, RequestContent, RequestContext)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

[Protocol Method] Reclassify a job.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
  • Please try the simpler Azure.Communication.JobRouter.JobRouterClient.ReclassifyJobAsync(System.String,Azure.Communication.JobRouter.ReclassifyJobOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> ReclassifyJobAsync (string jobId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member ReclassifyJobAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.ReclassifyJobAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ReclassifyJobAsync (jobId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

jobId
String

Id of a job.

content
RequestContent

The content to send as the body 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

jobId is null.

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

Service returned a non-success status code.

Applies to