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

            if (mgLogger != null)
            {
                log = mgLogger.CreateLog();
            }
        }
Example #2
0
 public LoginServices(IMgLogger logger = null)
 {
     if (logger != null)
     {
         log = logger.CreateLog();
     }
     else
     {
         log = new NullMgLog();
     }
 }
Example #3
0
 protected BaseApi(ApiServerInfo apiServerInfo, IMgLogger logger = null)
 {
     this.ApiServerInfo = apiServerInfo;
     if (logger != null)
     {
         log = logger.CreateLog();
     }
     else
     {
         log = new NullMgLog();
     }
 }