예제 #1
0
 public void AddEndpoint(RoomEndpoint endpoint)
 {
     if (!DoesEndpointExist(endpoint))
     {
         RoomEndpoints.Add(endpoint);
     }
 }
예제 #2
0
        public void RemoveEndpoint(RoomEndpoint endpoint)
        {
            if (DoesEndpointExist(endpoint))
            {
                var existingParticipant = RoomEndpoints.Single(x => x.EndpointId == endpoint.EndpointId);

                RoomEndpoints.Remove(existingParticipant);
                UpdateStatus();
            }
        }
예제 #3
0
 public bool DoesEndpointExist(RoomEndpoint endpoint)
 {
     return(RoomEndpoints.Any(x => x.EndpointId == endpoint.EndpointId));
 }