File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
projects/client/RabbitMQ.Client/src/client/impl Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -53,23 +53,31 @@ public RecordedBinding(AutorecoveringModel model) : base(model)
53
53
public string Destination { get ; set ; }
54
54
public string RoutingKey { get ; protected set ; }
55
55
public string Source { get ; protected set ; }
56
+
57
+ public bool Equals ( RecordedBinding other )
58
+ {
59
+ return other != null &&
60
+ ( Source . Equals ( other . Source ) ) &&
61
+ ( Destination . Equals ( other . Destination ) ) &&
62
+ ( RoutingKey . Equals ( other . RoutingKey ) ) &&
63
+ ( Arguments == other . Arguments ) ;
64
+ }
56
65
57
- public bool Equals ( RecordedBinding other )
66
+ public override bool Equals ( object obj )
58
67
{
59
- if ( ReferenceEquals ( other , null ) )
68
+ if ( ReferenceEquals ( obj , null ) )
60
69
{
61
70
return false ;
62
71
}
63
72
64
- if ( ReferenceEquals ( this , other ) )
73
+ if ( ReferenceEquals ( this , obj ) )
65
74
{
66
75
return true ;
67
76
}
68
77
69
- return ( Source . Equals ( other . Source ) ) &&
70
- ( Destination . Equals ( other . Destination ) ) &&
71
- ( RoutingKey . Equals ( other . RoutingKey ) ) &&
72
- ( Arguments == other . Arguments ) ;
78
+ var other = obj as RecordedBinding ;
79
+
80
+ return Equals ( other ) ;
73
81
}
74
82
75
83
public override int GetHashCode ( )
You can’t perform that action at this time.
0 commit comments