You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-net.md
+38-24Lines changed: 38 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@ dotnet build
45
45
Install the Azure Communication Rooms client library for .NET with [NuGet][https://www.nuget.org/]:
46
46
47
47
```console
48
-
dotnet add package Azure.Communication.Identity
49
48
dotnet add package Azure.Communication.Rooms
50
49
```
51
50
You'll need to use the Azure Communication Rooms client library for .NET [version 1.0.0-beta.2](https://www.nuget.org/packages/Azure.Communication.Rooms/1.0.0-beta.2) or above.
@@ -59,7 +58,7 @@ In the `Program.cs` file, add the following code to import the required namespac
59
58
usingSystem;
60
59
usingAzure;
61
60
usingAzure.Core;
62
-
usingAzure.Communication.Identity;
61
+
usingAzure.Communication.Rooms;
63
62
64
63
namespaceRoomsQuickstart
65
64
{
@@ -86,37 +85,55 @@ Create a new `RoomsClient` object that will be used to create new `rooms` and ma
Create a new `room` with default properties using the code snippet below:
92
+
### Set up room participants
99
93
100
-
```csharp
94
+
In order to set up who can join a room, you'll need to have the list of the identities of those users. You can follow the instructions [here](../../identity/access-tokens.md?pivots=programming-language-csharp) for creating users and issuing access tokens. Alternatively, if you want to create the users on demand, you can create them using the `CommunicationIdentityClient`.
- A room resource. [Create and manage rooms](get-started-rooms.md)
27
27
28
28
## Obtain user access token
29
+
If you have already created users and have added them as participants in the room following the "Set up room participants" section in [this page](./get-started-rooms.md), then you can directly use those users to join the room.
29
30
30
-
You'll need to create a User Access Token for each call participant. [Learn how to create and manage user access tokens](../identity/access-tokens.md). You can also use the Azure CLI and run the command below with your connection string to create a user and an access token.
31
+
Otherwise, you'll need to create a User Access Token for each call participant. [Learn how to create and manage user access tokens](../identity/access-tokens.md). You can also use the Azure CLI and run the command below with your connection string to create a user and an access token. After the users have been created, you'll need to add them to the room as participants before they can join the room.
31
32
32
33
```azurecli-interactive
33
34
az communication identity token issue --scope voip --connection-string "yourConnectionString"
@@ -86,7 +87,7 @@ For details, see [Use Azure CLI to Create and Manage Access Tokens](../identity/
86
87
[!INCLUDE [Join a room call from Android calling SDK](./includes/rooms-quickstart-call-android.md)]
0 commit comments