public bool Execute(IPeer peer, IPacket packet) { if (false == PacketHandlerMap.ContainsKey(packet.GetPacketId())) { return(false); } IPacketHandler packetHandler = PacketHandlerMap[packet.GetPacketId()]; packetHandler.Execute(peer, packet); return(true); }