Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
williamzhao87 committed Nov 16, 2023
1 parent 45b0678 commit 1d8766d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JobRouterQuickStart/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
Priority = 1,
RequestedWorkerSelectors =
{
new RouterWorkerSelector(key: "Some-Skill", labelOperator: LabelOperator.GreaterThan, value: new LabelValue(10))
new RouterWorkerSelector(key: "Some-Skill", labelOperator: LabelOperator.GreaterThan, value: new RouterValue(10))
}
});

var worker = await routerClient.CreateWorkerAsync(
new CreateWorkerOptions(workerId: "worker-1", totalCapacity: 1)
new CreateWorkerOptions(workerId: "worker-1", capacity: 1)
{
QueueAssignments = { [queue.Value.Id] = new RouterQueueAssignment() },
Labels = { ["Some-Skill"] = new LabelValue(11) },
ChannelConfigurations = { ["voice"] = new ChannelConfiguration(capacityCostPerJob: 1) },
Queues = { queue.Value.Id },
Labels = { ["Some-Skill"] = new RouterValue(11) },
Channels = { new RouterChannel(channelId: "voice", capacityCostPerJob: 1) },
AvailableForOffers = true
});

Expand Down

0 comments on commit 1d8766d

Please sign in to comment.