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); }