/// <summary> /// Creates a new instance of the AfsdbRecord class /// </summary> /// <param name="name"> Name of the record </param> /// <param name="timeToLive"> Seconds the record should be cached at most </param> /// <param name="subType"> Subtype of the record </param> /// <param name="hostname"> Hostname of the AFS database </param> public AfsdbRecord(DomainName name, int timeToLive, AfsSubType subType, DomainName hostname) : base(name, RecordType.Afsdb, RecordClass.INet, timeToLive) { SubType = subType; Hostname = hostname ?? DomainName.Root; }
/// <summary> /// Creates a new instance of the AfsdbRecord class. /// </summary> /// <param name="name">Name of the record.</param> /// <param name="timeToLive">Seconds the record should be cached at most.</param> /// <param name="subType">Subtype of the record.</param> /// <param name="hostname">Hostname of the AFS database.</param> public AfsdbRecord(string name, int timeToLive, AfsSubType subType, string hostname) : base(name, RecordType.Afsdb, RecordClass.INet, timeToLive) { this.SubType = subType; this.Hostname = hostname ?? String.Empty; }
/// <summary> /// Creates a new instance of the AfsdbRecord class /// </summary> /// <param name="name"> Name of the record </param> /// <param name="timeToLive"> Seconds the record should be cached at most </param> /// <param name="subType"> Subtype of the record </param> /// <param name="hostname"> Hostname of the AFS database </param> public AfsdbRecord(string name, int timeToLive, AfsSubType subType, string hostname) : base(name, RecordType.Afsdb, RecordClass.INet, timeToLive) { SubType = subType; Hostname = hostname ?? String.Empty; }