Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                string configFileName = args[0];
                CustomLogger.Information("Execution start");
                CustomLogger.Information($"Loading Unity from File:{configFileName}");
                IDictionary <string, object> parameters = new Dictionary <string, object> {
                    { "CallCarrier", "false" },
                    { "PackageFruits", "false" }
                };

                var container = _Bootstrapper(configFileName);

                IWorkflowManager mgr         = container.Resolve <IWorkflowManager>("SimpleWorkflowManager");
                bool             returnValue = mgr.Initiate(parameters);
            }
            catch (Exception ex)
            {
                CustomLogger.Exception(ex, "MAIN");
            }
            finally
            {
                Console.ReadKey();
                CustomLogger.Information("Execution complete");
            }
        }