Exemple #1
0
 /// <summary>
 /// Compares two <seealso cref="NodeServiceConfiguration"/> for equality
 /// </summary>
 /// <param name="left">The left service configuration</param>
 /// <param name="right">The right service configuration</param>
 /// <returns>Whether two <seealso cref="NodeServiceConfiguration"/> are equal</returns>
 public static bool operator ==(NodeServiceConfiguration left, NodeServiceConfiguration right)
 {
     // ReSharper disable once ArrangeStaticMemberQualifier
     return(NodeServiceConfiguration.Equals(left, right));
 }
Exemple #2
0
 /// <summary>Determines whether the specified object is equal to the current object.</summary>
 /// <returns>true if the specified object  is equal to the current object; otherwise, false.</returns>
 /// <param name="other">The object to compare with the current object. </param>
 private bool Equals(NodeServiceConfiguration other)
 {
     // ReSharper disable once ArrangeStaticMemberQualifier
     return(NodeServiceConfiguration.Equals(this.NodeAddress, other.NodeAddress) && this.ServiceDescription.Equals(other.ServiceDescription));
 }