Exemplo n.º 1
0
        static void Main(string[] args)
        {
            MatrixAccessor inputContainer;

            try
            {
                inputContainer = new MatrixAccessor();
                using (MQClient worker = new MQClient(inputContainer))
                {
                    worker.Run();
                }
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("Worker could not load input matrixes");
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            //DependencyFactory factory = new DependencyFactory();

            //var serilaize = factory.Container
            WorkerTimeLogger logger = new WorkerTimeLogger();
            MatrixAccessor   inputContainer;

            inputContainer = new MatrixAccessor();
            using (MQClient client = new MQClient(inputContainer, logger))
            {
                client.Run();
            }
            string path = Environment.CurrentDirectory + @"\log.txt";

            using (StreamWriter sw = new StreamWriter(path))
            {
                logger.SaveLog(sw);
            }
        }