private void UpdateStatus() { if (Status != RoomStatus.Closed && !RoomParticipants.Any() && !RoomEndpoints.Any() && IsCloseableRoom()) { Status = RoomStatus.Closed; } }
public bool DoesParticipantExist(RoomParticipant participant) { return(RoomParticipants.Any(x => x.ParticipantId == participant.ParticipantId)); }