예제 #1
0
 public OnlineMeetingRoom GetOrCreate(string code)
 {
     if (!Rooms.TryGetValue(code, out var room))
     {
         room = new OnlineMeetingRoom(code);
         AddOrUpdate(code, room);
     }
     return(room);
 }
예제 #2
0
 public void AddOrUpdate(string code, OnlineMeetingRoom room)
 {
     Rooms.AddOrUpdate(code, room, (s, o) => room);
 }