@@ -149,12 +149,12 @@ public sealed class ReadLocal : IReadConsistency
149
149
150
150
private ReadLocal ( ) { }
151
151
152
- /// <inheritdoc/>
152
+
153
153
public override bool Equals ( object obj ) => obj != null && obj is ReadLocal ;
154
154
155
- /// <inheritdoc/>
155
+
156
156
public override string ToString ( ) => "ReadLocal" ;
157
- /// <inheritdoc/>
157
+
158
158
public override int GetHashCode ( ) => nameof ( ReadLocal ) . GetHashCode ( ) ;
159
159
}
160
160
@@ -170,18 +170,18 @@ public ReadFrom(int n, TimeSpan timeout)
170
170
Timeout = timeout ;
171
171
}
172
172
173
- /// <inheritdoc/>
173
+
174
174
public override bool Equals ( object obj ) => obj is ReadFrom && Equals ( ( ReadFrom ) obj ) ;
175
175
176
- /// <inheritdoc/>
176
+
177
177
public bool Equals ( ReadFrom other )
178
178
{
179
179
if ( ReferenceEquals ( other , null ) ) return false ;
180
180
if ( ReferenceEquals ( this , other ) ) return true ;
181
181
return N == other . N && Timeout . Equals ( other . Timeout ) ;
182
182
}
183
183
184
- /// <inheritdoc/>
184
+
185
185
public override int GetHashCode ( )
186
186
{
187
187
unchecked
@@ -190,7 +190,7 @@ public override int GetHashCode()
190
190
}
191
191
}
192
192
193
- /// <inheritdoc/>
193
+
194
194
public override string ToString ( ) => $ "ReadFrom({ N } , timeout={ Timeout } )";
195
195
}
196
196
@@ -205,24 +205,24 @@ public ReadMajority(TimeSpan timeout, int minCapacity = 0)
205
205
MinCapacity = minCapacity ;
206
206
}
207
207
208
- /// <inheritdoc/>
208
+
209
209
public override bool Equals ( object obj )
210
210
{
211
211
return obj is ReadMajority && Equals ( ( ReadMajority ) obj ) ;
212
212
}
213
213
214
- /// <inheritdoc/>
214
+
215
215
public override string ToString ( ) => $ "ReadMajority(timeout={ Timeout } )";
216
216
217
- /// <inheritdoc/>
217
+
218
218
public bool Equals ( ReadMajority other )
219
219
{
220
220
if ( ReferenceEquals ( null , other ) ) return false ;
221
221
if ( ReferenceEquals ( this , other ) ) return true ;
222
222
return Timeout . Equals ( other . Timeout ) && MinCapacity == other . MinCapacity ;
223
223
}
224
224
225
- /// <inheritdoc/>
225
+
226
226
public override int GetHashCode ( )
227
227
{
228
228
unchecked
@@ -250,24 +250,24 @@ public ReadMajorityPlus(TimeSpan timeout, int additional, int minCapacity = 0)
250
250
MinCapacity = minCapacity ;
251
251
}
252
252
253
- /// <inheritdoc/>
253
+
254
254
public override bool Equals ( object obj )
255
255
{
256
256
return obj is ReadMajorityPlus && Equals ( ( ReadMajorityPlus ) obj ) ;
257
257
}
258
258
259
- /// <inheritdoc/>
259
+
260
260
public override string ToString ( ) => $ "ReadMajorityPlus(timeout={ Timeout } , additional={ Additional } )";
261
261
262
- /// <inheritdoc/>
262
+
263
263
public bool Equals ( ReadMajorityPlus other )
264
264
{
265
265
if ( ReferenceEquals ( null , other ) ) return false ;
266
266
if ( ReferenceEquals ( this , other ) ) return true ;
267
267
return Timeout . Equals ( other . Timeout ) && Additional == other . Additional && MinCapacity == other . MinCapacity ;
268
268
}
269
269
270
- /// <inheritdoc/>
270
+
271
271
public override int GetHashCode ( )
272
272
{
273
273
unchecked
@@ -290,24 +290,24 @@ public ReadAll(TimeSpan timeout)
290
290
Timeout = timeout ;
291
291
}
292
292
293
- /// <inheritdoc/>
293
+
294
294
public override bool Equals ( object obj )
295
295
{
296
296
return obj is ReadAll && Equals ( ( ReadAll ) obj ) ;
297
297
}
298
298
299
- /// <inheritdoc/>
299
+
300
300
public override string ToString ( ) => $ "ReadAll(timeout={ Timeout } )";
301
301
302
- /// <inheritdoc/>
302
+
303
303
public bool Equals ( ReadAll other )
304
304
{
305
305
if ( ReferenceEquals ( null , other ) ) return false ;
306
306
if ( ReferenceEquals ( this , other ) ) return true ;
307
307
return Timeout . Equals ( other . Timeout ) ;
308
308
}
309
309
310
- /// <inheritdoc/>
310
+
311
311
public override int GetHashCode ( )
312
312
{
313
313
return Timeout . GetHashCode ( ) ;
0 commit comments