Пример #1
0
        private async Task <RoomDetails> GetRoomDetailsAsync(
            RoomResource room,
            Task <ResourceSet <ParticipantResource> > participantTask)
        {
            ResourceSet <ParticipantResource> participants = await participantTask;

            return(new RoomDetails
            {
                Name = room.UniqueName,
                MaxParticipants = room.MaxParticipants ?? 0,
                ParticipantCount = participants.ToList().Count
            });
        }