次の方法で共有


JobRouterModelFactory.RouterChannel Method

Definition

Initializes a new instance of RouterChannel.

public static Azure.Communication.JobRouter.RouterChannel RouterChannel (string channelId = default, int capacityCostPerJob = 0, int? maxNumberOfJobs = default);
static member RouterChannel : string * int * Nullable<int> -> Azure.Communication.JobRouter.RouterChannel
Public Shared Function RouterChannel (Optional channelId As String = Nothing, Optional capacityCostPerJob As Integer = 0, Optional maxNumberOfJobs As Nullable(Of Integer) = Nothing) As RouterChannel

Parameters

channelId
String

Id of a channel.

capacityCostPerJob
Int32

The amount of capacity that an instance of a job of this channel will consume of the total worker capacity.

maxNumberOfJobs
Nullable<Int32>

The maximum number of jobs that can be supported concurrently for this channel. Value must be greater than zero.

Returns

A new RouterChannel instance for mocking.

Applies to