示例#1
0
        internal static void LaunchAgentProcess(string file)
        {
            var record = AgentRecord.Create(file);

            _processes.Add(record.Id, record);
            record.Launch();
        }
示例#2
0
        public static AgentRecord Create(string file)
        {
            var    agentId = Guid.NewGuid();
            string arglist = "-id " + agentId.ToString() + " -url " + ServerUrl;

            if (Debugger.IsAttached)
            {
                arglist += " --launch-debugger";
            }
            var record = new AgentRecord(agentId, file, arglist);

            return(record);
        }
示例#3
0
 public static AgentRecord Create(string file)
 {
     var agentId = Guid.NewGuid();
     string arglist = "-id " + agentId.ToString() + " -url " + ServerUrl;
     if (Debugger.IsAttached)
         arglist += " --launch-debugger";
     var record = new AgentRecord(agentId, file, arglist);
     return record;
 }