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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET