Opc.Ua.Com.Server.ComProxy.ThrowIfNotConnected C# (CSharp) Method

ThrowIfNotConnected() protected method

Throws if disposed or not connected.
protected ThrowIfNotConnected ( ) : Session
return Opc.Ua.Client.Session
        protected Session ThrowIfNotConnected()
        {
            if (m_disposed)
            {
                throw new ObjectDisposedException(GetType().Name);
            }

            if (m_session == null || !m_session.Connected)
            {
                throw ComUtils.CreateComException(ResultIds.E_FAIL);
            }

            return m_session;
        }
        #endregion