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

QueueWeightedAllocation 构造函数

定义

初始化 QueueWeightedAllocation 的新实例。

public QueueWeightedAllocation(double weight, System.Collections.Generic.IEnumerable<Azure.Communication.JobRouter.RouterQueueSelector> queueSelectors);
new Azure.Communication.JobRouter.QueueWeightedAllocation : double * seq<Azure.Communication.JobRouter.RouterQueueSelector> -> Azure.Communication.JobRouter.QueueWeightedAllocation
Public Sub New (weight As Double, queueSelectors As IEnumerable(Of RouterQueueSelector))

参数

weight
Double

此权重的百分比,以 1 的分数表示。

queueSelectors
IEnumerable<RouterQueueSelector>

选择此分配时将应用的队列选择器的集合。

例外

queueSelectors 为 null。

适用于