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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET