Delen via


JobRouterModelFactory.RuleEngineWorkerSelectorAttachment(RouterRule) Method

Definition

Initializes a new instance of RuleEngineWorkerSelectorAttachment.

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

Parameters

rule
RouterRule

A RouterRule that resolves a collection of worker 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 RuleEngineWorkerSelectorAttachment instance for mocking.

Applies to