JobRouterModelFactory.RouterWorkerAssignment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET