Opc.Ua.Bindings.TcpTransportChannel.EndSendRequest C# (CSharp) Method

EndSendRequest() public method

Completes an asynchronous operation to send a request over the secure channel.
Thrown if any communication error occurs.
public EndSendRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult The result returned from the BeginSendRequest call.
return IServiceResponse
        public IServiceResponse EndSendRequest(IAsyncResult result)
        {
            TcpClientChannel channel = m_channel;

            if (channel == null)
            {
                throw ServiceResultException.Create(StatusCodes.BadSecureChannelClosed, "Channel has been closed.");
            }

            return channel.EndSendRequest(result);
        }