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

Close() public method

Closes the secure channel.
Thrown if any communication error occurs.
public Close ( ) : void
return void
        public void Close()
        {
            if (m_channel != null)
            {
                lock (m_lock)
                {
                    if (m_channel != null)
                    {
                        m_channel.Close(1000);
                        m_channel = null;
                    }
                }
            }
        }