public bool HandleIncomingData(uint packetId, ClientSession session, IPipelineHandlerContext context, ref PacketReader reader) { if (this.TryGetConsumer(packetId, out IIncomingPacketConsumer consumer)) { if (consumer is IClientSessionIncomingPacketConsumer sessionConsumer) { sessionConsumer.Read(session, ref reader); } else { context.ProgressReadHandler(ref reader); } return(true); } return(false); }