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