public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = InputMessageId.GetHashCode();
         hashCode = (hashCode * 397) ^ OutputMessageId.GetHashCode();
         hashCode = (hashCode * 397) ^ ConsumedMethod.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)DiscoveryMode;
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ProvidedMethod != null ? ProvidedMethod.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MethodTitle.GetHashCode();
         hashCode = (hashCode * 397) ^ (InputMessageId != null ? InputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutputMessageId != null ? OutputMessageId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)MethodType;
         return(hashCode);
     }
 }
 private bool Equals(MethodDiscoveryRequest other)
 {
     return(InputMessageId.Equals(other.InputMessageId) && OutputMessageId.Equals(other.OutputMessageId) && ConsumedMethod.Equals(other.ConsumedMethod) && DiscoveryMode == other.DiscoveryMode);
 }