Share via


JobRouterModelFactory.ConditionalQueueSelectorAttachment Method

Definition

Initializes a new instance of ConditionalQueueSelectorAttachment.

public static Azure.Communication.JobRouter.ConditionalQueueSelectorAttachment ConditionalQueueSelectorAttachment (Azure.Communication.JobRouter.RouterRule condition = default, System.Collections.Generic.IEnumerable<Azure.Communication.JobRouter.RouterQueueSelector> queueSelectors = default);
static member ConditionalQueueSelectorAttachment : Azure.Communication.JobRouter.RouterRule * seq<Azure.Communication.JobRouter.RouterQueueSelector> -> Azure.Communication.JobRouter.ConditionalQueueSelectorAttachment
Public Shared Function ConditionalQueueSelectorAttachment (Optional condition As RouterRule = Nothing, Optional queueSelectors As IEnumerable(Of RouterQueueSelector) = Nothing) As ConditionalQueueSelectorAttachment

Parameters

condition
RouterRule

The condition that must be true for the queue selectors to be attached. Please note RouterRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DirectMapRouterRule, ExpressionRouterRule, FunctionRouterRule, StaticRouterRule and WebhookRouterRule.

queueSelectors
IEnumerable<RouterQueueSelector>

The queue selectors to attach.

Returns

A new ConditionalQueueSelectorAttachment instance for mocking.

Applies to