JobRouterModelFactory.ConditionalQueueSelectorAttachment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET