Exemple #1
0
        private void Register()
        {
            var ci = _connectionTable.Get(_name);

            //TODO Demo
            ci.SetApplicationNames("");
            ci.SetIp(NetworkOps.GetIpString(HashOps.GetFqdn()));
            ci.SetPort(9091);

            _connectionTable.Set(_name, ci);
        }
Exemple #2
0
        public void StartZLeaf()
        {
            try
            {
                var exeToRun  = Path.Combine(Path.GetTempPath(), "zleaf.exe");
                var ci        = _connectionTable.Get("Server");
                var arguments = ClientModel.BuildCommandLineOptionsZLeaf(ci.GetIp(), _name, 200, 200, 200, 200);

                ProcessControl.FindDeleteFileAndStartAgain(exeToRun, "zleaf", true, true, Resources.zleaf, arguments);
            }
            catch (Exception exception)
            {
                TraceOps.Out(exception.ToString());
            }
        }