Пример #1
0
 public TaskWorker(string id = null)
 {
     Id      = id;
     _logger = IoCFactory.Resolve <ILoggerFactory>().Create(this.GetType());
 }
Пример #2
0
 public ExceptionManager()
 {
     Logger = IoCFactory.IsInit()
                  ? IoCFactory.Resolve <ILoggerFactory>().Create(GetType().Name)
                  : null;
 }
Пример #3
0
 public TaskWorker(string id = null)
 {
     Id      = id;
     _logger = IoCFactory.IsInit() ? IoCFactory.Resolve <ILoggerFactory>().Create(GetType()) : null;
 }