using DotNetty.Buffers; using DotNetty.Codecs; using DotNetty.Transport.Channels; using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkDriver.ChargerServer; namespace HybirdFrameworkServices.Charger.Codec; [Scope("InstancePerDependency")] public class Encoder : MessageToByteEncoder, IEncoder { protected override void Encode(IChannelHandlerContext context, byte[] message, IByteBuffer output) { output.WriteBytes(message); } }