@@ -118,7 +118,7 @@ public void SendAsync<T>(T methodObj, object methodState, Action<IMessageSentRes
118118 logger . Debug ( "sendAction BeginSend Type={0} Serializer={1} MessageId={2}" , obj . GetType ( ) . FullName , serializer . GetType ( ) . FullName , message . MessageId ) ;
119119
120120 // Send the event asynchronously.
121- defaultClient . BeginSend ( message , cb , null ) ;
121+ defaultClient . Send ( message ) ;
122122 }
123123 catch ( Exception ex ) {
124124 failureException = ex ;
@@ -127,11 +127,12 @@ public void SendAsync<T>(T methodObj, object methodState, Action<IMessageSentRes
127127 } ,
128128 ( ar ) => {
129129 try {
130+ //NOTE: Refactor to no longer call the end action
130131 failureException = null ; //we may retry so we must null out the error.
131132 // Complete the asynchronous operation. This may throw an exception that will be handled internally by the retry policy.
132- logger . Debug ( "sendAction EndSend Begin Type={0} Serializer={1} MessageId={2}" , obj . GetType ( ) . FullName , serializer . GetType ( ) . FullName , message . MessageId ) ;
133- defaultClient . EndSend ( ar ) ;
134- logger . Debug ( "sendAction EndSend End Type={0} Serializer={1} MessageId={2}" , obj . GetType ( ) . FullName , serializer . GetType ( ) . FullName , message . MessageId ) ;
133+ // logger.Debug("sendAction EndSend Begin Type={0} Serializer={1} MessageId={2}", obj.GetType().FullName, serializer.GetType().FullName, message.MessageId);
134+ // defaultClient.EndSend(ar);
135+ // logger.Debug("sendAction EndSend End Type={0} Serializer={1} MessageId={2}", obj.GetType().FullName, serializer.GetType().FullName, message.MessageId);
135136 }
136137 catch ( Exception ex ) {
137138 failureException = ex ;
0 commit comments