你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RuleEngineWorkerSelectorAttachment(RouterRule) 构造函数

定义

初始化 RuleEngineWorkerSelectorAttachment 的新实例。

public RuleEngineWorkerSelectorAttachment (Azure.Communication.JobRouter.RouterRule rule);
new Azure.Communication.JobRouter.RuleEngineWorkerSelectorAttachment : Azure.Communication.JobRouter.RouterRule -> Azure.Communication.JobRouter.RuleEngineWorkerSelectorAttachment
Public Sub New (rule As RouterRule)

参数

rule
RouterRule

以下类型之一的规则:

StaticRule:提供始终返回相同结果(无论输入如何)的静态规则的规则。 DirectMapRule:返回与输入标签相同的标签的规则。 ExpressionRule:提供内联表达式规则的规则。 AzureFunctionRule:提供对 HTTP 触发的 Azure 函数的绑定的规则。 WebhookRule:提供绑定到遵循 OAuth2.0 身份验证协议的 Web 服务器的规则。 请注意 RouterRule , 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 FunctionRouterRuleDirectMapRouterRuleExpressionRouterRuleStaticRouterRuleWebhookRouterRule

例外

rule 为 null。

适用于