public void AddLaunchInfo(ILaunchInformation info)
 {
     if (_data.ContainsKey(info.Name))
     {
         _logger.LogError($"key:{info.Name} already exists");
         return;
     }
     _data.Add(info.Name, info);
 }
 public void UpdateLaunchInfo(ILaunchInformation info)
 {
     if (!_data.ContainsKey(info.Name))
     {
         _logger.LogError($"key:{info.Name} not found");
         return;
     }
     _data[info.Name] = info;
 }
Exemple #3
0
        public void Run(ILaunchInformation launchInformation)
        {
            var psi = new ProcessStartInfo
            {
                FileName        = launchInformation.FileName,
                UseShellExecute = true
            };

            Process.Start(psi);
        }