public IServiceResponse EndSendRequest(IAsyncResult result)
{
if (m_wcfBypassChannel != null)
{
return m_wcfBypassChannel.EndSendRequest(result);
}
#if MANAGE_CHANNEL_THREADS
return SendRequestAsyncResult.WaitForComplete(result);
#else
InvokeServiceResponseMessage responseMessage = EndInvokeService(result);
return (IServiceResponse)BinaryDecoder.DecodeMessage(responseMessage.InvokeServiceResponse, null, m_messageContext);
#endif
}