Ejemplo n.º 1
0
 public HistoryController(
     LobToolsDbContext dbContext,
     IDataLogImplementation dataLogImplementation,
     IEntityHandler entityHandler)
 {
     _dbContext             = dbContext;
     _dataLogImplementation = dataLogImplementation;
     _entityHandler         = entityHandler;
 }
Ejemplo n.º 2
0
 public DataLogBusiness(
     LobToolsDbContext lobToolsDbContext,
     IHttpContextAccessor httpContextAccessor,
     MetadataDbContext metadataDbContext)
 {
     _lobToolsDbContext   = lobToolsDbContext;
     _httpContextAccessor = httpContextAccessor;
     _metadataDbContext   = metadataDbContext;
     // Todo. Should use ImplementationContainer here.
 }
Ejemplo n.º 3
0
 public RequestLogger(
     IImplementationsContainer implementationsContainer,
     IHttpContextAccessor httpContextAccessor,
     ILogger <RequestLogger> logger,
     IGlobalConfiguration globalConfiguration)
 {
     _implementationsContainer = implementationsContainer;
     _dbContext           = _implementationsContainer.GetLobDbContext <LobToolsDbContext>(httpContextAccessor.HttpContext);
     _logger              = logger;
     _globalConfiguration = globalConfiguration;
 }