You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
412 B

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