public override Task WriteAsync(IChannelHandlerContext context, object message) { if (message is string) { Console.WriteLine($"发送消息:{message}"); showSend.DynamicInvoke(message); var bytes = BytesUtil.String2Bytes(message as string); var buffer = Unpooled.WrappedBuffer(bytes); context.WriteAndFlushAsync(buffer); } return(Task.CompletedTask); }