using DotNetty.Buffers; using DotNetty.Codecs; using DotNetty.Transport.Channels; using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkDriver.TcpServer; namespace HybirdFrameworkServices.Charger.Codec; [Scope("InstancePerDependency")] public class Decoder : ByteToMessageDecoder, IDecoder { protected override void Decode(IChannelHandlerContext context, IByteBuffer input, List output) { output.Add(new IoSession(context.Channel)); } }