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; }
public void Run(ILaunchInformation launchInformation) { var psi = new ProcessStartInfo { FileName = launchInformation.FileName, UseShellExecute = true }; Process.Start(psi); }