Partilhar via


PassThroughWorkerSelectorAttachment Constructor

Definition

Initializes a new instance of PassThroughWorkerSelectorAttachment.

public PassThroughWorkerSelectorAttachment (string key, Azure.Communication.JobRouter.LabelOperator labelOperator, TimeSpan? expiresAfter = default);
new Azure.Communication.JobRouter.PassThroughWorkerSelectorAttachment : string * Azure.Communication.JobRouter.LabelOperator * Nullable<TimeSpan> -> Azure.Communication.JobRouter.PassThroughWorkerSelectorAttachment
Public Sub New (key As String, labelOperator As LabelOperator, Optional expiresAfter As Nullable(Of TimeSpan) = Nothing)

Parameters

key
String

The label key to query against.

labelOperator
LabelOperator

Describes how the value of the label is compared to the value passed through.

expiresAfter
Nullable<TimeSpan>

Describes how long the attached worker selector is valid.

Exceptions

key is null.

Applies to