Exemple #1
0
        public override bool Equals(object obj)
        {
            if (obj is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, obj))
            {
                return(true);
            }

            DnsSOARecord other = obj as DnsSOARecord;

            if (other == null)
            {
                return(false);
            }

            if (!this._primaryNameServer.Equals(other._primaryNameServer, StringComparison.OrdinalIgnoreCase))
            {
                return(false);
            }

            if (!this._responsiblePerson.Equals(other._responsiblePerson, StringComparison.OrdinalIgnoreCase))
            {
                return(false);
            }

            if (this._serial != other._serial)
            {
                return(false);
            }

            if (this._refresh != other._refresh)
            {
                return(false);
            }

            if (this._retry != other._retry)
            {
                return(false);
            }

            if (this._expire != other._expire)
            {
                return(false);
            }

            if (this._minimum != other._minimum)
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public bool IsZoneUpdateAvailable(DnsSOARecord newRecord)
 {
     return(IsZoneUpdateAvailable(_serial, newRecord._serial));
 }