public ServerStatusDataType GetStatus() { lock (m_lock) { if (m_serverInternal == null) { throw new ServiceResultException(StatusCodes.BadServerHalted); } return m_serverInternal.Status.Value; } }