private static void OnSenderOpen(IAsyncResult result)
        {
            DuplexAmqpLink asyncState = (DuplexAmqpLink)result.AsyncState;

            asyncState.OnOperationComplete(asyncState.sender, result, true);
        }
        private static void OnReceiverClose(IAsyncResult result)
        {
            DuplexAmqpLink asyncState = (DuplexAmqpLink)result.AsyncState;

            asyncState.OnOperationComplete(asyncState.receiver, result, false);
        }