Exemplo n.º 1
0
 private void LeaveRoom(RequestLeaveRoomMessage requestLeaveRoomMessage)
 {
     CallApi(() => _api.LeaveRoom(requestLeaveRoomMessage.Id), _ => ListRooms(new RequestRoomListMessage()));
 }
 private void OnRequestLeaveRoomMessage(RequestLeaveRoomMessage requestLeaveRoomMessage)
 {
     var module = FindModuleById(requestLeaveRoomMessage.Id);
     if (module != null)
     {
         Modules.Remove(module);
         _creator.ReleaseModule(module);
     }
 }