@@ -65,7 +65,7 @@ internal Connection(ConnectionConfig config, IFrameHandler frameHandler)
6565 _frameHandler = frameHandler ;
6666
6767 Func < Exception , string , Task > onException = ( exception , context ) => OnCallbackExceptionAsync ( CallbackExceptionEventArgs . Build ( exception , context ) ) ;
68- _callbackExceptionWrapper = new AsyncEventingWrapper < CallbackExceptionEventArgs > ( string . Empty , ( exception , context ) => Task . CompletedTask ) ;
68+ _callbackExceptionAsyncWrapper = new AsyncEventingWrapper < CallbackExceptionEventArgs > ( string . Empty , ( exception , context ) => Task . CompletedTask ) ;
6969 _connectionBlockedWrapper = new AsyncEventingWrapper < ConnectionBlockedEventArgs > ( "OnConnectionBlocked" , onException ) ;
7070 _connectionUnblockedWrapper = new AsyncEventingWrapper < EventArgs > ( "OnConnectionUnblocked" , onException ) ;
7171 _connectionShutdownWrapper = new AsyncEventingWrapper < ShutdownEventArgs > ( "OnShutdown" , onException ) ;
@@ -118,12 +118,12 @@ internal IFrameHandler FrameHandler
118118 get { return _frameHandler ; }
119119 }
120120
121- public event AsyncEventHandler < CallbackExceptionEventArgs > CallbackException
121+ public event AsyncEventHandler < CallbackExceptionEventArgs > CallbackExceptionAsync
122122 {
123- add => _callbackExceptionWrapper . AddHandler ( value ) ;
124- remove => _callbackExceptionWrapper . RemoveHandler ( value ) ;
123+ add => _callbackExceptionAsyncWrapper . AddHandler ( value ) ;
124+ remove => _callbackExceptionAsyncWrapper . RemoveHandler ( value ) ;
125125 }
126- private AsyncEventingWrapper < CallbackExceptionEventArgs > _callbackExceptionWrapper ;
126+ private AsyncEventingWrapper < CallbackExceptionEventArgs > _callbackExceptionAsyncWrapper ;
127127
128128 public event AsyncEventHandler < ConnectionBlockedEventArgs > ConnectionBlocked
129129 {
@@ -207,7 +207,7 @@ public event AsyncEventHandler<QueueNameChangedAfterRecoveryEventArgs> QueueName
207207
208208 internal void TakeOver ( Connection other )
209209 {
210- _callbackExceptionWrapper . Takeover ( other . _callbackExceptionWrapper ) ;
210+ _callbackExceptionAsyncWrapper . Takeover ( other . _callbackExceptionAsyncWrapper ) ;
211211 _connectionBlockedWrapper . Takeover ( other . _connectionBlockedWrapper ) ;
212212 _connectionUnblockedWrapper . Takeover ( other . _connectionUnblockedWrapper ) ;
213213 _connectionShutdownWrapper . Takeover ( other . _connectionShutdownWrapper ) ;
@@ -464,7 +464,7 @@ private void LogCloseError(string error, Exception ex)
464464
465465 internal Task OnCallbackExceptionAsync ( CallbackExceptionEventArgs args )
466466 {
467- return _callbackExceptionWrapper . InvokeAsync ( this , args ) ;
467+ return _callbackExceptionAsyncWrapper . InvokeAsync ( this , args ) ;
468468 }
469469
470470 internal ValueTask WriteAsync ( RentedMemory frames , CancellationToken cancellationToken )
0 commit comments