@@ -75,7 +75,7 @@ public class AutorecoveringConnection : IConnection, IRecoverable
75
75
76
76
protected List < AutorecoveringModel > m_models = new List < AutorecoveringModel > ( ) ;
77
77
78
- protected IDictionary < RecordedBinding , byte > m_recordedBindings =
78
+ protected ConcurrentDictionary < RecordedBinding , byte > m_recordedBindings =
79
79
new ConcurrentDictionary < RecordedBinding , byte > ( ) ;
80
80
81
81
protected List < EventHandler < ConnectionBlockedEventArgs > > m_recordedBlockedEventHandlers =
@@ -418,7 +418,7 @@ public void DeleteRecordedBinding(RecordedBinding rb)
418
418
{
419
419
lock ( m_recordedEntitiesLock )
420
420
{
421
- m_recordedBindings . Remove ( rb ) ;
421
+ ( ( IDictionary < RecordedBinding , int > ) m_recordedBindings ) . Remove ( rb ) ;
422
422
}
423
423
}
424
424
@@ -448,7 +448,7 @@ public void DeleteRecordedExchange(string name)
448
448
var bs = m_recordedBindings . Keys . Where ( b => name . Equals ( b . Destination ) ) ;
449
449
foreach ( RecordedBinding b in bs )
450
450
{
451
- m_recordedBindings . Remove ( b ) ;
451
+ DeleteRecordedBinding ( b ) ;
452
452
MaybeDeleteRecordedAutoDeleteExchange ( b . Source ) ;
453
453
}
454
454
}
@@ -464,7 +464,7 @@ public void DeleteRecordedQueue(string name)
464
464
var bs = m_recordedBindings . Keys . Where ( b => name . Equals ( b . Destination ) ) ;
465
465
foreach ( RecordedBinding b in bs )
466
466
{
467
- m_recordedBindings . Remove ( b ) ;
467
+ DeleteRecordedBinding ( b ) ;
468
468
MaybeDeleteRecordedAutoDeleteExchange ( b . Source ) ;
469
469
}
470
470
}
@@ -523,7 +523,7 @@ public void RecordBinding(RecordedBinding rb)
523
523
{
524
524
lock ( m_recordedEntitiesLock )
525
525
{
526
- m_recordedBindings . Add ( rb , 0 ) ;
526
+ m_recordedBindings . TryAdd ( rb , 0 ) ;
527
527
}
528
528
}
529
529
0 commit comments