• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# RecordClass类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中RecordClass的典型用法代码示例。如果您正苦于以下问题:C# RecordClass类的具体用法?C# RecordClass怎么用?C# RecordClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RecordClass类属于命名空间,在下文中一共展示了RecordClass类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: KeyRecordBase

 /// <summary>
 /// Creates a new key record.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="recordClass">The record class.</param>
 /// <param name="timeToLive">The time-to-live.</param>
 /// <param name="flags">The flags.</param>
 /// <param name="protocol">The protocol.</param>
 /// <param name="algorithm">The algorithm.</param>
 protected KeyRecordBase(string name, RecordClass recordClass, int timeToLive, ushort flags, ProtocolType protocol, DnsSecAlgorithm algorithm)
     : base(name, RecordType.Key, recordClass, timeToLive)
 {
     this.Flags = flags;
     this.Protocol = protocol;
     this.Algorithm = algorithm;
 }
开发者ID:alexbikfalvi,项目名称:InetAnalytics,代码行数:16,代码来源:KeyRecordBase.cs


示例2: WriteQuestion

 public void WriteQuestion(Name name, RecordType qtype, RecordClass qclass = RecordClass.Internet)
 {
     WriteName(name);
     WriteUInt16((ushort)qtype);
     WriteUInt16((ushort)qclass);
     _questionCount++;
 }
开发者ID:joltmode,项目名称:Tmds.MDns,代码行数:7,代码来源:DnsMessageWriter.cs


示例3: DiffieHellmanKeyRecord

		/// <summary>
		///   Creates a new instance of the DiffieHellmanKeyRecord class
		/// </summary>
		/// <param name="name"> Name of the record </param>
		/// <param name="recordClass"> Class of the record </param>
		/// <param name="timeToLive"> Seconds the record should be cached at most </param>
		/// <param name="flags"> Flags of the key </param>
		/// <param name="protocol"> Protocol for which the key is used </param>
		/// <param name="prime"> Binary data of the prime of the key </param>
		/// <param name="generator"> Binary data of the generator of the key </param>
		/// <param name="publicValue"> Binary data of the public value </param>
		public DiffieHellmanKeyRecord(string name, RecordClass recordClass, int timeToLive, ushort flags, ProtocolType protocol, byte[] prime, byte[] generator, byte[] publicValue)
			: base(name, recordClass, timeToLive, flags, protocol, DnsSecAlgorithm.DiffieHellman)
		{
			Prime = prime ?? new byte[] { };
			Generator = generator ?? new byte[] { };
			PublicValue = publicValue ?? new byte[] { };
		}
开发者ID:0x0mar,项目名称:Xploit,代码行数:18,代码来源:DiffieHellmanKeyRecord.cs


示例4: ResourceRecord

        public ResourceRecord(DnsReader br)
        {
            _domain = br.ReadDomain();
            _qtype = (RecordType)br.ReadInt16();
            _qclass = (RecordClass)br.ReadInt16();
            _ttl = br.ReadInt32();

            int recordLength = br.ReadInt16();
            if (recordLength != 0)
            {
                switch (_qtype)
                {
                    case RecordType.A:     _record = new ARecord(br);      break;
                    case RecordType.CNAME: _record = new CNAMERecord(br);  break;
                    case RecordType.MX:    _record = new MXRecord(br);     break;
                    case RecordType.NS:    _record = new NSRecord(br);     break;
                    case RecordType.SOA:   _record = new SOARecord(br);    break;
                    case RecordType.TXT:   _record = new TXTRecord(br);    break;
                    case RecordType.PTR:   _record = new PTRERecord(br);	break;

                    // NetBIOS related records
                    case RecordType.NB:    _record = new NBRecord(br);     break;

                    default:
                        br += recordLength;
                        break;
                }
            }
        }
开发者ID:marinehero,项目名称:microserver,代码行数:29,代码来源:ResourceRecord.cs


示例5: DnsResponse

 private DnsResponse(ushort messageId, DnsName queryName, RecordType queryType, RecordClass queryClass)
 {
     this.MessageId = messageId;
     this.QueryName = queryName;
     this.QueryType = queryType;
     this.QueryClass = queryClass;
 }
开发者ID:RadicalResearch,项目名称:RadicalResearch.Net.Dns,代码行数:7,代码来源:DnsResponse.cs


示例6: LogRecord

 public LogRecord(String message, RecordClass recordClass, TimeSpan? runningTime, DateTime timeStamp)
 {
     this.message = message;
       this.recordClass = recordClass;
       this.runningTime = runningTime;
       this.timeStamp = timeStamp;
 }
开发者ID:dibrov4bor,项目名称:Competitive-Test,代码行数:7,代码来源:LogRecord.cs


示例7: DnsRecordBase

		protected DnsRecordBase(string name, RecordType recordType, RecordClass recordClass, int timeToLive)
		{
			Name = name ?? String.Empty;
			RecordType = recordType;
			RecordClass = recordClass;
			TimeToLive = timeToLive;
		}
开发者ID:itplanes,项目名称:DNSAgent,代码行数:7,代码来源:DnsRecordBase.cs


示例8: ResourceRecord

 internal ResourceRecord(string name, RecordType type, RecordClass rClass, DateTime expiry)
 {
     _name = name;
     _type = type;
     _class = rClass;
     _expiry = expiry;
 }
开发者ID:marinehero,项目名称:ThinkAway.net,代码行数:7,代码来源:ResourceRecord.cs


示例9: CDsRecord

		/// <summary>
		///   Creates a new instance of the CDsRecord class
		/// </summary>
		/// <param name="name"> Name of the record </param>
		/// <param name="recordClass"> Class of the record </param>
		/// <param name="timeToLive"> Seconds the record should be cached at most </param>
		/// <param name="keyTag"> Key tag </param>
		/// <param name="algorithm"> Algorithm used </param>
		/// <param name="digestType"> Type of the digest </param>
		/// <param name="digest"> Binary data of the digest </param>
		public CDsRecord(DomainName name, RecordClass recordClass, int timeToLive, ushort keyTag, DnsSecAlgorithm algorithm, DnsSecDigestType digestType, byte[] digest)
			: base(name, RecordType.Ds, recordClass, timeToLive)
		{
			KeyTag = keyTag;
			Algorithm = algorithm;
			DigestType = digestType;
			Digest = digest ?? new byte[] { };
		}
开发者ID:huoxudong125,项目名称:ARSoft.Tools.Net,代码行数:18,代码来源:CDsRecord.cs


示例10: DsRecord

 /// <summary>
 /// Creates a new instance of the DsRecord class.
 /// </summary>
 /// <param name="name">Name of the record.</param>
 /// <param name="recordClass">Class of the record.</param>
 /// <param name="timeToLive">Seconds the record should be cached at most.</param>
 /// <param name="keyTag">Key tag.</param>
 /// <param name="algorithm">Algorithm used.</param>
 /// <param name="digestType">Type of the digest.</param>
 /// <param name="digest">Binary data of the digest.</param>
 public DsRecord(string name, RecordClass recordClass, int timeToLive, ushort keyTag, DnsSecAlgorithm algorithm, DnsSecDigestType digestType, byte[] digest)
     : base(name, RecordType.Ds, recordClass, timeToLive)
 {
     this.KeyTag = keyTag;
     this.Algorithm = algorithm;
     this.DigestType = digestType;
     this.Digest = digest ?? new byte[] { };
 }
开发者ID:alexbikfalvi,项目名称:InetAnalytics,代码行数:18,代码来源:DsRecord.cs


示例11: NSec3ParamRecord

		public NSec3ParamRecord(string name, RecordClass recordClass, int timeToLive, DnsSecAlgorithm hashAlgorithm, byte flags, ushort iterations, byte[] salt)
			: base(name, RecordType.NSec3Param, recordClass, timeToLive)
		{
			HashAlgorithm = hashAlgorithm;
			Flags = flags;
			Iterations = iterations;
			Salt = salt ?? new byte[] { };
		}
开发者ID:LETO-R,项目名称:ARSoft.Tools.Net,代码行数:8,代码来源:NSec3ParamRecord.cs


示例12: DnsKeyRecord

		public DnsKeyRecord(string name, RecordClass recordClass, int timeToLive, ushort flags, byte protocol, DnsSecAlgorithm algorithm, byte[] publicKey)
			: base(name, RecordType.DnsKey, recordClass, timeToLive)
		{
			Flags = flags;
			Protocol = protocol;
			Algorithm = algorithm;
			PublicKey = publicKey ?? new byte[] { };
		}
开发者ID:LETO-R,项目名称:ARSoft.Tools.Net,代码行数:8,代码来源:DnsKeyRecord.cs


示例13: DnsMessageBase

 protected DnsMessageBase(ushort messageId, DnsName queryName, RecordType queryType, RecordClass queryClass)
     : this()
 {
     this.MessageId = messageId;
     this.QueryCount = 1;
     this.QueryName = queryName;
     this.QueryType = queryType;
     this.QueryClass = queryClass;
 }
开发者ID:RadicalResearch,项目名称:RadicalResearch.Net.Dns,代码行数:9,代码来源:DnsMessageBase.cs


示例14: ResourceRecord

 public ResourceRecord(Domain domain, byte[] data, RecordType type,
         RecordClass klass = RecordClass.IN, TimeSpan ttl = default(TimeSpan))
 {
     this.domain = domain;
     this.type = type;
     this.klass = klass;
     this.ttl = ttl;
     this.data = data;
 }
开发者ID:greggman,项目名称:hft-unity-gamepad,代码行数:9,代码来源:ResourceRecord.cs


示例15: IP4AddressRecord

        internal IP4AddressRecord(string name, RecordType type, RecordClass rClass, DateTime expiry, PacketReader reader)
            : base(name, type, rClass, expiry)
        {
            ushort dataLen = reader.ReadUShort();
            int pos = reader.Position;

            _address = new IPAddress(reader.ReadBytes(dataLen));

            reader.Position = pos + dataLen;
        }
开发者ID:alexcmd,项目名称:DiscUtils,代码行数:10,代码来源:Ip4AddressRecord.cs


示例16: PointerRecord

        internal PointerRecord(string name, RecordType type, RecordClass rClass, DateTime expiry, PacketReader reader)
            : base(name, type, rClass, expiry)
        {
            ushort dataLen = reader.ReadUShort();
            int pos = reader.Position;

            _targetName = reader.ReadName();

            reader.Position = pos + dataLen;
        }
开发者ID:marinehero,项目名称:ThinkAway.net,代码行数:10,代码来源:PointerRecord.cs


示例17: DnsResolve

 static DnsMessage DnsResolve(string name, RecordType recordType, RecordClass recordClass)
 {
     DnsClient dnsClient;
     if (WindowsNameServicesManager.NameServerHookMethod != WindowsNameServicesManager.NameServerHookMethodType.ChangeNS)
         dnsClient = DnsClient.Default;
     else
     {
         dnsClient = GetNonDefaultDnsClient();
     }
     return dnsClient.Resolve(name, recordType, recordClass);
 }
开发者ID:BEASTLICK-INTERNET-POLICY-COMMISSION,项目名称:MeowBit,代码行数:11,代码来源:NameServer.cs


示例18: ResourceRecordBase

        protected ResourceRecordBase(DnsName name, RecordType recordType, RecordClass recordClass, uint timeToLive)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            this.Name = name;
            this.RecordType = recordType;
            this.RecordClass = recordClass;
            this.TimeToLive = timeToLive;
        }
开发者ID:RadicalResearch,项目名称:RadicalResearch.Net.Dns,代码行数:12,代码来源:ResourceRecordBase.cs


示例19: Resolve

		/// <summary>
		///   Queries a dns server for specified records.
		/// </summary>
		/// <param name="name"> Domain, that should be queried </param>
		/// <param name="recordType"> Type the should be queried </param>
		/// <param name="recordClass"> Class the should be queried </param>
		/// <returns> The complete response of the dns server </returns>
		public DnsMessage Resolve(string name, RecordType recordType, RecordClass recordClass)
		{
			if (String.IsNullOrEmpty(name))
			{
				throw new ArgumentException("Name must be provided", "name");
			}

			DnsMessage message = new DnsMessage() { IsQuery = true, OperationCode = OperationCode.Query, IsRecursionDesired = true, IsEDnsEnabled = true };
			message.Questions.Add(new DnsQuestion(name, recordType, recordClass));

			return SendMessage(message);
		}
开发者ID:0x0mar,项目名称:Xploit,代码行数:19,代码来源:DnsClient.cs


示例20: SigRecord

 /// <summary>
 /// Creates a new instance of the SigRecord class.
 /// </summary>
 /// <param name="name">Name of the record.</param>
 /// <param name="recordClass">Class of the record.</param>
 /// <param name="timeToLive">Seconds the record should be cached at most.</param>
 /// <param name="typeCovered"><see cref="RecordType">Record type</see> that is covered by this record.</param>
 /// <param name="algorithm"><see cref="DnsSecAlgorithm">Algorithm</see> that is used for signature.</param>
 /// <param name="labels">Label count of original record that is covered by this record.</param>
 /// <param name="originalTimeToLive">Original time to live value of original record that is covered by this record.</param>
 /// <param name="signatureExpiration">Signature is valid until this date.</param>
 /// <param name="signatureInception">Signature is valid from this date.</param>
 /// <param name="keyTag">Key tag.</param>
 /// <param name="signersName">Domain name of generator of the signature.</param>
 /// <param name="signature">Binary data of the signature.</param>
 public SigRecord(string name, RecordClass recordClass, int timeToLive, RecordType typeCovered, DnsSecAlgorithm algorithm, byte labels, int originalTimeToLive, DateTime signatureExpiration, DateTime signatureInception, ushort keyTag, string signersName, byte[] signature)
     : base(name, RecordType.Sig, recordClass, timeToLive)
 {
     this.TypeCovered = typeCovered;
     this.Algorithm = algorithm;
     this.Labels = labels;
     this.OriginalTimeToLive = originalTimeToLive;
     this.SignatureExpiration = signatureExpiration;
     this.SignatureInception = signatureInception;
     this.KeyTag = keyTag;
     this.SignersName = signersName ?? String.Empty;
     this.Signature = signature ?? new byte[] { };
 }
开发者ID:alexbikfalvi,项目名称:InetAnalytics,代码行数:28,代码来源:SigRecord.cs



注:本文中的RecordClass类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# RecordInputStream类代码示例发布时间:2022-05-24
下一篇:
C# Record类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap