示例#1
0
        protected ExcelScheme(ILifetimeScope lifetimeScope)
        {
            this.lifetimeScope = lifetimeScope;
            IMgLogger mgLogger = lifetimeScope.Resolve <IMgLogger>();

            if (mgLogger != null)
            {
                log = mgLogger.CreateLog();
            }
        }
示例#2
0
 public LoginServices(IMgLogger logger = null)
 {
     if (logger != null)
     {
         log = logger.CreateLog();
     }
     else
     {
         log = new NullMgLog();
     }
 }
        protected ExcelTaskManager(Autofac.ILifetimeScope lifetimeScope)
        {
            this.lifetimeScope = lifetimeScope;
            IMgLogger mgLogger;

            lifetimeScope.TryResolve <IMgLogger>(out mgLogger);
            if (mgLogger != null)
            {
                log = mgLogger.CreateLog();
            }
        }
示例#4
0
 protected BaseApi(ApiServerInfo apiServerInfo, IMgLogger logger = null)
 {
     this.ApiServerInfo = apiServerInfo;
     if (logger != null)
     {
         log = logger.CreateLog();
     }
     else
     {
         log = new NullMgLog();
     }
 }