File tree Expand file tree Collapse file tree 11 files changed +12
-68
lines changed Expand file tree Collapse file tree 11 files changed +12
-68
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public override int GetHashCode() {
128
128
hashCode = ( hashCode * 397 ) ^ ( MachineName == null ? 0 : MachineName . GetHashCode ( ) ) ;
129
129
hashCode = ( hashCode * 397 ) ^ ( InstallId == null ? 0 : InstallId . GetHashCode ( ) ) ;
130
130
hashCode = ( hashCode * 397 ) ^ ( RuntimeVersion == null ? 0 : RuntimeVersion . GetHashCode ( ) ) ;
131
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
131
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
132
132
return hashCode ;
133
133
}
134
134
}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public override int GetHashCode() {
61
61
var hashCode = Message == null ? 0 : Message . GetHashCode ( ) ;
62
62
hashCode = ( hashCode * 397 ) ^ ( Type == null ? 0 : Type . GetHashCode ( ) ) ;
63
63
hashCode = ( hashCode * 397 ) ^ ( Code == null ? 0 : Code . GetHashCode ( ) ) ;
64
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
64
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
65
65
hashCode = ( hashCode * 397 ) ^ ( Inner == null ? 0 : Inner . GetHashCode ( ) ) ;
66
66
hashCode = ( hashCode * 397 ) ^ ( StackTrace == null ? 0 : StackTrace . GetCollectionHashCode ( ) ) ;
67
67
hashCode = ( hashCode * 397 ) ^ ( TargetMethod == null ? 0 : TargetMethod . GetHashCode ( ) ) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public override int GetHashCode() {
39
39
hashCode = ( hashCode * 397 ) ^ ( DeclaringNamespace == null ? 0 : DeclaringNamespace . GetHashCode ( ) ) ;
40
40
hashCode = ( hashCode * 397 ) ^ ( DeclaringType == null ? 0 : DeclaringType . GetHashCode ( ) ) ;
41
41
hashCode = ( hashCode * 397 ) ^ ( Name == null ? 0 : Name . GetHashCode ( ) ) ;
42
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
42
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( new [ ] { "ILOffset" } ) ) ;
43
43
hashCode = ( hashCode * 397 ) ^ ( GenericArguments == null ? 0 : GenericArguments . GetCollectionHashCode ( ) ) ;
44
44
hashCode = ( hashCode * 397 ) ^ ( Parameters == null ? 0 : Parameters . GetCollectionHashCode ( ) ) ;
45
45
return hashCode ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public override int GetHashCode() {
48
48
hashCode = ( hashCode * 397 ) ^ IsEntry . GetHashCode ( ) ;
49
49
hashCode = ( hashCode * 397 ) ^ CreatedDate . GetHashCode ( ) ;
50
50
hashCode = ( hashCode * 397 ) ^ ModifiedDate . GetHashCode ( ) ;
51
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
51
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
52
52
return hashCode ;
53
53
}
54
54
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public override int GetHashCode() {
33
33
var hashCode = Name == null ? 0 : Name . GetHashCode ( ) ;
34
34
hashCode = ( hashCode * 397 ) ^ ( Type == null ? 0 : Type . GetHashCode ( ) ) ;
35
35
hashCode = ( hashCode * 397 ) ^ ( TypeNamespace == null ? 0 : TypeNamespace . GetHashCode ( ) ) ;
36
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
36
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
37
37
hashCode = ( hashCode * 397 ) ^ ( GenericArguments == null ? 0 : GenericArguments . GetCollectionHashCode ( ) ) ;
38
38
return hashCode ;
39
39
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public override int GetHashCode() {
97
97
hashCode = ( hashCode * 397 ) ^ ( ClientIpAddress == null ? 0 : ClientIpAddress . GetHashCode ( ) ) ;
98
98
hashCode = ( hashCode * 397 ) ^ ( Cookies == null ? 0 : Cookies . GetCollectionHashCode ( _cookieHashCodeExclusions ) ) ;
99
99
hashCode = ( hashCode * 397 ) ^ ( QueryString == null ? 0 : QueryString . GetCollectionHashCode ( ) ) ;
100
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
100
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
101
101
return hashCode ;
102
102
}
103
103
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public override int GetHashCode() {
50
50
var hashCode = Message == null ? 0 : Message . GetHashCode ( ) ;
51
51
hashCode = ( hashCode * 397 ) ^ ( Type == null ? 0 : Type . GetHashCode ( ) ) ;
52
52
hashCode = ( hashCode * 397 ) ^ ( StackTrace == null ? 0 : StackTrace . GetHashCode ( ) ) ;
53
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
53
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
54
54
hashCode = ( hashCode * 397 ) ^ ( Inner == null ? 0 : Inner . GetHashCode ( ) ) ;
55
55
return hashCode ;
56
56
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public override int GetHashCode() {
40
40
unchecked {
41
41
var hashCode = EmailAddress == null ? 0 : EmailAddress . GetHashCode ( ) ;
42
42
hashCode = ( hashCode * 397 ) ^ ( Description == null ? 0 : Description . GetHashCode ( ) ) ;
43
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
43
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
44
44
return hashCode ;
45
45
}
46
46
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public override int GetHashCode() {
49
49
unchecked {
50
50
var hashCode = Identity == null ? 0 : Identity . GetHashCode ( ) ;
51
51
hashCode = ( hashCode * 397 ) ^ ( Name == null ? 0 : Name . GetHashCode ( ) ) ;
52
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
52
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( ) ) ;
53
53
return hashCode ;
54
54
}
55
55
}
Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Collections . Generic ;
2
3
3
4
namespace Exceptionless . Models {
4
5
public class Event : IData {
@@ -71,6 +72,7 @@ public override bool Equals(object obj) {
71
72
return Equals ( ( Event ) obj ) ;
72
73
}
73
74
75
+ private static readonly List < string > _exclusions = new List < string > { KnownDataKeys . TraceLog } ;
74
76
public override int GetHashCode ( ) {
75
77
unchecked {
76
78
var hashCode = Type == null ? 0 : Type . GetHashCode ( ) ;
@@ -79,7 +81,7 @@ public override int GetHashCode() {
79
81
hashCode = ( hashCode * 397 ) ^ ( Message == null ? 0 : Message . GetHashCode ( ) ) ;
80
82
hashCode = ( hashCode * 397 ) ^ ( Geo == null ? 0 : Geo . GetHashCode ( ) ) ;
81
83
hashCode = ( hashCode * 397 ) ^ Value . GetHashCode ( ) ;
82
- hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetHashCode ( ) ) ;
84
+ hashCode = ( hashCode * 397 ) ^ ( Data == null ? 0 : Data . GetCollectionHashCode ( _exclusions ) ) ;
83
85
return hashCode ;
84
86
}
85
87
}
You can’t perform that action at this time.
0 commit comments