Beispiel #1
0
        static void Main(string[] args)
        {
            var filename = args[0];

            GetAppSettings();
            IProcess    fileagent = new FileAgent(_iconfiguration);
            ISaveResult dac       = new BatchDac(_iconfiguration);
            var         result    = fileagent.ProcessFile(filename);

            dac.SaveResult(result);
            Console.WriteLine("Processed file:" + result.FName);
        }
Beispiel #2
0
        static void ShowRecords()
        {
            var dac          = new BatchDac(_iconfiguration);
            var batchRunList = dac.Get();

            batchRunList.ForEach(item =>
            {
                Console.WriteLine(item.Id);
                Console.WriteLine(item.FName);
                Console.WriteLine(item.Result);
                Console.WriteLine(item.NodeName);
                Console.WriteLine(item.TimeSaved);
                Console.WriteLine("--");
            });
            Console.WriteLine("Press any key to stop.");
            Console.ReadKey();
        }