Exemplo n.º 1
0
        public DisplayOutput Run()
        {
            List <Default> systems = null;
            DisplayOutput  dispOut = new DisplayOutput();

            systems = SystemFactory.GetAllSystems();

            foreach (Default system in systems)
            {
                foreach (Job jb in system.Jobs)
                {
                    jb.JobAction();

                    foreach (string display in jb.GetDisplayOutput().Events)
                    {
                        dispOut.Events.Add(display);
                    }
                }
            }

            EmailResults(dispOut);

            return(dispOut);
        }