Ejemplo n.º 1
0
        private void GetEmployees(out FileInfo fileInfo, out List <Employee> employees)
        {
            fileInfo = new FileInfo(@"Model\Employee.xlsx");
            IDeserializer <Employees> deserializer = DataFactory.Instance.GetDeserializer <Employees>(@"Model\employees.xml");

            employees = deserializer.GetEntity().Employee;
        }
Ejemplo n.º 2
0
        public void Run(Hashtable hashtable)
        {
            _hashtable = hashtable;
            string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath;
            IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath);
            RunnerEntity runner = deserializer.GetEntity();

            if (IsSingleProcess)
            {
                RunSingleProcess();
            }
            else
            {
                RunMultiProcesses();
            }
        }
Ejemplo n.º 3
0
        public bool IsValid(Hashtable hashtable)
        {
            bool isValid = true;

            _hashtable = hashtable;
            string filePath = ApplicationSettings.Instance.FileSettings.RunnerPath;
            IDeserializer <RunnerEntity> deserializer = DataFactory.Instance.GetDeserializer <RunnerEntity>(filePath);
            RunnerEntity runner = deserializer.GetEntity();

            if (IsSingleProcess)
            {
                isValid = RegisterSingleProcess(runner);
            }
            else
            {
                isValid = RegisterMultiProcesses(runner);
            }
            return(isValid);
        }