Пример #1
0
 private void UpdateStatus()
 {
     if (Status != RoomStatus.Closed && !RoomParticipants.Any() && !RoomEndpoints.Any() && IsCloseableRoom())
     {
         Status = RoomStatus.Closed;
     }
 }
Пример #2
0
 public bool DoesParticipantExist(RoomParticipant participant)
 {
     return(RoomParticipants.Any(x => x.ParticipantId == participant.ParticipantId));
 }