Share via


JobRouterClient.DeclineJobOffer Method

Definition

Overloads

DeclineJobOffer(String, String, RequestContent, RequestContext)

[Protocol Method] Declines an offer to work on 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.DeclineJobOffer(System.String,System.String,Azure.Communication.JobRouter.DeclineJobOfferOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.
DeclineJobOffer(DeclineJobOfferOptions, CancellationToken)

Declines an offer to work on a job.

DeclineJobOffer(String, String, RequestContent, RequestContext)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

[Protocol Method] Declines an offer to work on 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.DeclineJobOffer(System.String,System.String,Azure.Communication.JobRouter.DeclineJobOfferOptions,System.Threading.CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response DeclineJobOffer (string workerId, string offerId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member DeclineJobOffer : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.DeclineJobOffer : string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function DeclineJobOffer (workerId As String, offerId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response

Parameters

workerId
String

Id of a worker.

offerId
String

Id of an offer.

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

workerId or offerId is null.

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

Service returned a non-success status code.

Applies to

DeclineJobOffer(DeclineJobOfferOptions, CancellationToken)

Source:
JobRouterClient.cs
Source:
JobRouterClient.cs

Declines an offer to work on a job.

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

Parameters

options
DeclineJobOfferOptions

Options for declining offer.

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