Exemplo n.º 1
0
        private void fillVerText()
        {
            serStat = ClientEnvironment.ServerStateService.GetState();
            string uri = GetUrl(RemotingServices.GetObjectUri((MarshalByRefObject)ClientEnvironment.ServerStateService));

            lb_ver.Items.Add(Localizer.GetLocalized("ClientVer") + " " + ClientEnvironment.ClientVerision);
            lb_ver.Items.Add(Localizer.GetLocalized("AppserVer") + " " + serStat.ServerVersion);
            lb_ver.Items.Add(Localizer.GetLocalized("DBVer") + " " + serStat.DbVersion);
            lb_ver.Items.Add(Localizer.GetLocalized("HostURL") + " " + uri); 
        }
Exemplo n.º 2
0
        public ServerStateData GetState()
        {
            ServerStateData state = new ServerStateData();
            state.TotalMemory = GC.GetTotalMemory(false);

            state.ServerVersion = ServerEnvironment.ServerVersion.ToString();

            state.DbVersion = ServerEnvironment.DbProperties.GetDbVersion();

            return state;
        }