Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     var startupContainer = new StartupContainerFactory().CreateStartupContainer();
     try
     {
         startupContainer.Resolve<ApplicationStarter>().Start();
     }
     catch (Exception ex)
     {
         var logger = startupContainer.Resolve<ILogger>();
         logger.LogError(ex.Message);
         logger.LogError(ex.StackTrace);
     }
 }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            var startupContainer = new StartupContainerFactory().CreateStartupContainer();

            try
            {
                startupContainer.Resolve <ApplicationStarter>().Start();
            }
            catch (Exception ex)
            {
                var logger = startupContainer.Resolve <ILogger>();
                logger.LogError(ex.Message);
                logger.LogError(ex.StackTrace);
            }
        }