Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((AdapterInformation.GetHashCode() * 397) ^ (Host != null ? Host.GetHashCode() : 0));
     }
 }
 public ServiceAnnouncement(AdapterInformation adapterInformation, IZeroconfHost host)
 {
     if (host == null)
     {
         throw new ArgumentNullException(nameof(host));
     }
     AdapterInformation = adapterInformation;
     Host = host;
 }
Beispiel #3
0
 public bool Equals(ServiceAnnouncement other)
 {
     return(AdapterInformation.Equals(other.AdapterInformation) && Equals(Host, other.Host));
 }