public IEnumerable <PackageToRunWithStatus> Get() { var instancesWithStatus = new List <PackageToRunWithStatus>(); var instances = _packagesInstances.GetAllInstancesToRun(); foreach (var packageToRun in instances) { instancesWithStatus.Add(new PackageToRunWithStatus(packageToRun, _packageRunner.IsRunning(packageToRun.InstanceId))); } return(instancesWithStatus.OrderBy(i => i.Instance.RunOrder)); }
public void RunAllInstances() { var packagesToRun = _packagesInstances.GetAllInstancesToRun(); RunListOfPackages(packagesToRun); }