Skip to content

Commit 28ff592

Browse files
committed
edits
1 parent eb3f120 commit 28ff592

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed
Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Accept/Decline an offer in Job Router
2+
title: Accept or decline an offer in Job Router
33
titleSuffix: An Azure Communication Services how-to guide
4-
description: Use Azure Communication Services SDKs to manage the job offer
5-
author: marcma
4+
description: Use Azure Communication Services SDKs to accept or decline a job offer in Job Router.
5+
author: marche0133
66
ms.author: marcma
77
ms.service: azure-communication-services
88
ms.topic: how-to
@@ -12,20 +12,21 @@ ms.custom: template-how-to
1212
#Customer intent: As a developer, I want to accept/decline job offers when coming in.
1313
---
1414

15-
# Accept/Decline an offer
15+
# Accept or decline a Job Router offer
1616

17-
This guide outlines the steps to observe and response a Job Router offer.
17+
This guide outlines the steps to observe a Job Router offer, and then to accept the job offer or delete the job offer.
1818

1919
[!INCLUDE [Private Preview Disclaimer](../../includes/private-preview-include-section.md)]
2020

2121
## Prerequisites
2222

23-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
24-
- A deployed Communication Services resource. [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
25-
- Optional: Complete the quickstart to [get started with Job Router](../../quickstarts/router/get-started-router.md)
23+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
24+
- A deployed Azure Communication Services resource. [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
25+
- Optional: Complete the quickstart to [get started with Job Router](../../quickstarts/router/get-started-router.md).
2626

2727
## Observe the offer issued event
28-
After creating a job, observe the [offer issued event](../subscribe-events.md#microsoftcommunicationrouterworkerofferissued) which contains the worker ID and job offer ID.
28+
29+
After you create a job, observe the [offer issued event](../subscribe-events.md#microsoftcommunicationrouterworkerofferissued), which contains the worker ID and the job offer ID:
2930

3031
```csharp
3132
var workerId = event.data.workerId;
@@ -36,7 +37,7 @@ Console.WriteLine($"Job Offer ID: {offerId} offered to worker {workerId} ");
3637

3738
## Accept a job offer
3839

39-
Then, the worker can accept the job offer by using the SDK
40+
Then, the worker can accept the job offer by using the SDK:
4041

4142
```csharp
4243
var result = await client.AcceptJobOfferAsync(workerId, offerId);
@@ -45,9 +46,14 @@ var result = await client.AcceptJobOfferAsync(workerId, offerId);
4546

4647
## Decline a job offer
4748

48-
Aternatively, the worker can decline the job offer by using the SDK if worker is not willing to take the job.
49+
Alternatively, the worker can decline the job offer by using the SDK if worker isn't willing to take the job:
4950

5051
```csharp
5152
var result = await client.DeclineJobOfferAsync(workerId, offerId);
5253

5354
```
55+
56+
## Next steps
57+
58+
- Review how to [manage a Job Router queue](manage-queue.md).
59+
- Learn how to [subscribe to Job Router events](subscribe-events.md).

0 commit comments

Comments
 (0)