Beispiel #1
0
 private static void InitializeECommon()
 {
     _ecommonConfiguration = ECommonConfiguration
         .Create()
         .UseAutofac()
         .RegisterCommonComponents()
         .UseLog4Net()
         .UseJsonNet()
         .RegisterUnhandledExceptionHandler();
     _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(typeof(Bootstrap).FullName);
     _logger.Info("ECommon initialized.");
 }
        private void InitializeECommon()
        {
            _ecommonConfiguration = ECommonConfiguration
                .Create()
                .UseAutofac()
                .RegisterCommonComponents()
                .UseLog4Net()
                .UseJsonNet();

            _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().FullName);
            _logger.Info("ECommon initialized.");
        }