File tree Expand file tree Collapse file tree 2 files changed +4
-23
lines changed
RabbitMQ.Client/src/client/impl Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Original file line number Diff line number Diff line change 50
50
51
51
namespace RabbitMQ . Client . Framing . Impl
52
52
{
53
- public class AutorecoveringConnection : IConnection , IRecoverable
53
+ public class AutorecoveringConnection : IConnection
54
54
{
55
55
private readonly object m_eventLock = new object ( ) ;
56
56
@@ -267,25 +267,6 @@ public event EventHandler<QueueNameChangedAfterRecoveryEventArgs> QueueNameChang
267
267
}
268
268
}
269
269
270
- [ Obsolete ( "Use RecoverySucceeded instead" ) ]
271
- public event EventHandler < EventArgs > Recovery
272
- {
273
- add
274
- {
275
- lock ( m_eventLock )
276
- {
277
- m_recovery += value ;
278
- }
279
- }
280
- remove
281
- {
282
- lock ( m_eventLock )
283
- {
284
- m_recovery -= value ;
285
- }
286
- }
287
- }
288
-
289
270
public string ClientProvidedName { get ; private set ; }
290
271
291
272
public ushort ChannelMax
Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ public void TestRecoveryEventHandlersOnChannel()
632
632
public void TestRecoveryEventHandlersOnConnection ( )
633
633
{
634
634
Int32 counter = 0 ;
635
- ( ( AutorecoveringConnection ) Conn ) . Recovery += ( source , ea ) => Interlocked . Increment ( ref counter ) ;
635
+ ( ( AutorecoveringConnection ) Conn ) . RecoverySucceeded += ( source , ea ) => Interlocked . Increment ( ref counter ) ;
636
636
637
637
CloseAndWaitForRecovery ( ) ;
638
638
CloseAndWaitForRecovery ( ) ;
@@ -698,7 +698,7 @@ public void TestServerNamedQueueRecovery()
698
698
699
699
var latch = new ManualResetEvent ( false ) ;
700
700
var connection = ( ( AutorecoveringConnection ) Conn ) ;
701
- connection . Recovery += ( source , ea ) => latch . Set ( ) ;
701
+ connection . RecoverySucceeded += ( source , ea ) => latch . Set ( ) ;
702
702
connection . QueueNameChangeAfterRecovery += ( source , ea ) => { nameAfter = ea . NameAfter ; } ;
703
703
704
704
CloseAndWaitForRecovery ( ) ;
@@ -972,7 +972,7 @@ protected void CloseAndWaitForShutdown(AutorecoveringConnection conn)
972
972
protected ManualResetEvent PrepareForRecovery ( AutorecoveringConnection conn )
973
973
{
974
974
var latch = new ManualResetEvent ( false ) ;
975
- conn . Recovery += ( source , ea ) => latch . Set ( ) ;
975
+ conn . RecoverySucceeded += ( source , ea ) => latch . Set ( ) ;
976
976
977
977
return latch ;
978
978
}
You can’t perform that action at this time.
0 commit comments