コード例 #1
0
        public void IsSerializable()
        {
            CanonicalName name = "axoom.com";

            string json = JsonConvert.SerializeObject(name, _jsonSerializerSettings);

            json.Should().Be("\"axoom.com.\"");
        }
コード例 #2
0
 public AAAARecordSet(CanonicalName name, params AAAARecord[] records)
     : this(name, TimeSpan.FromHours(1), records)
 {
 }
コード例 #3
0
 public AAAARecordSet(CanonicalName name, TimeSpan ttl, params AAAARecord[] records)
     : base(name, ttl, records.OfType <Record>().ToArray())
 {
     Type = RecordType.AAAA;
 }
コード例 #4
0
 public Zone(CanonicalName name, IEnumerable <CanonicalName> nameservers)
 {
     Name        = name;
     Nameservers = new List <CanonicalName>(nameservers);
 }
コード例 #5
0
 public Zone(CanonicalName name, params CanonicalName[] nameservers)
     : this(name, (IEnumerable <CanonicalName>)nameservers)
 {
 }
コード例 #6
0
 public RecordSet(CanonicalName name, TimeSpan ttl, params Record[] records)
 {
     Name = name;
     Ttl  = (uint)ttl.TotalSeconds;
     Records.AddRange(records);
 }