protected ExcelScheme(ILifetimeScope lifetimeScope) { this.lifetimeScope = lifetimeScope; IMgLogger mgLogger = lifetimeScope.Resolve <IMgLogger>(); if (mgLogger != null) { log = mgLogger.CreateLog(); } }
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(); } }
protected BaseApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) { this.ApiServerInfo = apiServerInfo; if (logger != null) { log = logger.CreateLog(); } else { log = new NullMgLog(); } }