public UnitOfWork(DataContext dbContext, IServiceScopeFactory serviceScopeFactory)
 {
     _dataContext        = dbContext;
     LogService          = new LogService(_dataContext);
     LogInjectorService  = new LogInjectorService(serviceScopeFactory);
     ServiceScopeFactory = serviceScopeFactory;
 }
 public UnitOfWork(IServiceScopeFactory serviceScopeFactory)
 {
     LogInjectorService  = new LogInjectorService(serviceScopeFactory);
     ServiceScopeFactory = serviceScopeFactory;
 }