예제 #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Brokers?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ControllerId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ClusterId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Topics?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked {
         return(((Id != null ? Id.GetHashCode() : 0) * 397) ^ (int)ControllerType);
     }
 }