Delen via


JobRouterClient.UnassignJobAsync Method

Definition

Overloads

UnassignJobAsync(UnassignJobOptions, CancellationToken)

Unassign a job.

UnassignJobAsync(String, String, RequestContent, RequestContext)

[Protocol Method] Unassign 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.UnassignJobAsync(System.String,System.String,Azure.Communication.JobRouter.UnassignJobOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.

UnassignJobAsync(UnassignJobOptions, CancellationToken)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

Unassign a job.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.UnassignJobResult>> UnassignJobAsync (Azure.Communication.JobRouter.UnassignJobOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member UnassignJobAsync : Azure.Communication.JobRouter.UnassignJobOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.UnassignJobResult>>
override this.UnassignJobAsync : Azure.Communication.JobRouter.UnassignJobOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.UnassignJobResult>>
Public Overridable Function UnassignJobAsync (options As UnassignJobOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of UnassignJobResult))

Parameters

options
UnassignJobOptions

Options for unassigning a job.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

options is null.

Applies to

UnassignJobAsync(String, String, RequestContent, RequestContext)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

[Protocol Method] Unassign 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.UnassignJobAsync(System.String,System.String,Azure.Communication.JobRouter.UnassignJobOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> UnassignJobAsync (string jobId, string assignmentId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member UnassignJobAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.UnassignJobAsync : string * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UnassignJobAsync (jobId As String, assignmentId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

jobId
String

Id of a job.

assignmentId
String

Id of a job assignment.

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 or assignmentId is null.

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

Service returned a non-success status code.

Applies to