Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Name?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ QueryTimeoutMs.GetHashCode();
         hashCode = (hashCode * 397) ^ PollIntervalSeconds;
         hashCode = (hashCode * 397) ^ (ConnectionString?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ QueryTimeoutMs.GetHashCode();
         hashCode = (hashCode * 397) ^ PollIntervalSeconds;
         hashCode = (hashCode * 397) ^ (ConnectionString != null ? ConnectionString.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Url != null ? Url.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ QueryTimeoutMs.GetHashCode();
         hashCode = (hashCode * 397) ^ (User != null ? User.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AdminUser != null ? AdminUser.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AdminPassword != null ? AdminPassword.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Url?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ QueryTimeoutMs.GetHashCode();
         hashCode = (hashCode * 397) ^ (User?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Password?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (AdminUser?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (AdminPassword?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 0;
         foreach (var i in Instances)
         {
             hashCode = (hashCode * 397) ^ i.GetHashCode();
         }
         hashCode = (hashCode * 397) ^ QueryTimeoutMs.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }