Share via


JobRouterModelFactory.RouterWorkerAssignment Method

Definition

Initializes a new instance of RouterWorkerAssignment.

public static Azure.Communication.JobRouter.RouterWorkerAssignment RouterWorkerAssignment (string assignmentId = default, string jobId = default, int capacityCost = 0, DateTimeOffset assignedAt = default);
static member RouterWorkerAssignment : string * string * int * DateTimeOffset -> Azure.Communication.JobRouter.RouterWorkerAssignment
Public Shared Function RouterWorkerAssignment (Optional assignmentId As String = Nothing, Optional jobId As String = Nothing, Optional capacityCost As Integer = 0, Optional assignedAt As DateTimeOffset = Nothing) As RouterWorkerAssignment

Parameters

assignmentId
String

Id of the assignment.

jobId
String

Id of the job assigned.

capacityCost
Int32

The amount of capacity this assignment has consumed on the worker.

assignedAt
DateTimeOffset

The assignment time of the job in UTC.

Returns

A new RouterWorkerAssignment instance for mocking.

Exceptions

assignmentId or jobId is null.

Applies to