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