Sdílet prostřednictvím


JobRouterModelFactory.RuleEngineQueueSelectorAttachment(RouterRule) Method

Definition

Initializes a new instance of RuleEngineQueueSelectorAttachment.

public static Azure.Communication.JobRouter.RuleEngineQueueSelectorAttachment RuleEngineQueueSelectorAttachment (Azure.Communication.JobRouter.RouterRule rule = default);
static member RuleEngineQueueSelectorAttachment : Azure.Communication.JobRouter.RouterRule -> Azure.Communication.JobRouter.RuleEngineQueueSelectorAttachment
Public Shared Function RuleEngineQueueSelectorAttachment (Optional rule As RouterRule = Nothing) As RuleEngineQueueSelectorAttachment

Parameters

rule
RouterRule

A RouterRule that resolves a collection of queue selectors to attach. 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.

Returns

A new RuleEngineQueueSelectorAttachment instance for mocking.

Applies to