Opc.Ua.Server.StandardServer.SetServerState C# (CSharp) 메소드

SetServerState() 보호된 메소드

Updates the server state.
protected SetServerState ( ServerState state ) : void
state ServerState The state.
리턴 void
        protected virtual void SetServerState(ServerState state)
        {
            lock (m_lock)
            {
                if (ServiceResult.IsBad(ServerError))
                {
                    throw new ServiceResultException(ServerError);
                }

                if (m_serverInternal == null)
                {                    
                    throw new ServiceResultException(StatusCodes.BadServerHalted);
                }

                m_serverInternal.CurrentState = state;
            }
        }