示例#1
0
        public void StopDapp(string name)
        {
            var instance = _ef.Instances.SingleOrDefault(x => x.Name == name);

            if (instance == null)
            {
                Console.WriteLine("[Dasdaq Dev Agent] Dapp is not found.");
                return;
            }


            if (_dic.ContainsKey(name))
            {
                _proc.KillProcessTree(_dic[name].Process.Id);
            }

            _ef.Remove(instance);
            _ef.SaveChanges();
        }