Skip to content

Commit eceda04

Browse files
author
Minnie Liu
committed
Quick fixes on .Net Rooms Quickstart
1 parent b99d54e commit eceda04

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-net.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,11 @@ To retrieve all active rooms, use the `GetRoomsAsync` method exposed on the clie
156156
```csharp
157157

158158
// List all active rooms
159-
AsyncPageable<CommunicationRoom> allRooms = await roomsClient.GetRoomsAsync();
159+
AsyncPageable<CommunicationRoom> allRooms = roomsClient.GetRoomsAsync();
160160
await foreach (CommunicationRoom room in allRooms)
161161
{
162-
if (room is not null)
163-
{
164-
Console.WriteLine("\nFirst room id in all active rooms: " + room.Id);
165-
break;
166-
}
162+
Console.WriteLine("\nFirst room id in all active rooms: " + room.Id);
163+
break;
167164
}
168165

169166
```

0 commit comments

Comments
 (0)