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));
        }
Esempio n. 2
0
        public void RunAllInstances()
        {
            var packagesToRun = _packagesInstances.GetAllInstancesToRun();

            RunListOfPackages(packagesToRun);
        }