Opc.Ua.WcfChannelBase.EndSendRequest C# (CSharp) Method

EndSendRequest() public method

Completes an asynchronous operation to send a request over the secure channel.
public EndSendRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult
return IServiceResponse
        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
        }