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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET