diff --git a/src/DotNetty.Codecs/DotNetty.Codecs.DNS/DatagramDnsQueryDecoder.cs b/src/DotNetty.Codecs/DotNetty.Codecs.DNS/DatagramDnsQueryDecoder.cs
index d6db25035..40e008a26 100644
--- a/src/DotNetty.Codecs/DotNetty.Codecs.DNS/DatagramDnsQueryDecoder.cs
+++ b/src/DotNetty.Codecs/DotNetty.Codecs.DNS/DatagramDnsQueryDecoder.cs
@@ -1,24 +1,55 @@
-using DotNetty.Transport.Channels.Sockets;
-using System;
-using System.Collections.Generic;
-using DotNetty.Transport.Channels;
+using DotNetty.Buffers;
using DotNetty.Codecs.DNS.Messages;
-using DotNetty.Buffers;
using DotNetty.Codecs.DNS.Records;
+using DotNetty.Transport.Channels;
+using DotNetty.Transport.Channels.Sockets;
+using System;
+using System.Collections.Generic;
namespace DotNetty.Codecs.DNS
{
+ ///
+ /// Defines the
+ ///
public class DatagramDnsQueryDecoder : MessageToMessageDecoder
{
+ #region 字段
+
+ ///
+ /// Defines the recordDecoder
+ ///
private readonly IDnsRecordDecoder recordDecoder;
- public DatagramDnsQueryDecoder() : this(new DefaultDnsRecordDecoder()) { }
+ #endregion 字段
+ #region 构造函数
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public DatagramDnsQueryDecoder() : this(new DefaultDnsRecordDecoder())
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The recordDecoder
public DatagramDnsQueryDecoder(IDnsRecordDecoder recordDecoder)
{
this.recordDecoder = recordDecoder ?? throw new ArgumentNullException(nameof(recordDecoder));
}
+ #endregion 构造函数
+
+ #region 方法
+
+ ///
+ /// The Decode
+ ///
+ /// The context
+ /// The message
+ /// The output
protected override void Decode(IChannelHandlerContext context, DatagramPacket message, List