public HomeController(IHealthCheckUtility healthCheckUtility, IInfrastructureLogService infrastructureLogService, IConfigurationService configurationService)
 {
     _healthCheckUtility       = healthCheckUtility;
     _infrastructureLogService = infrastructureLogService;
     _configurationService     = configurationService;
     _releaseName = _configurationService.ConfigurationSettings.ReleaseName;
 }
        public async Task InitAsync()
        {
            var optionsBuilder = new DbContextOptionsBuilder <EFInfrastructureLogRepository>();

            optionsBuilder.UseSqlite("DataSource=:memory:");
            _infrastructureLogRepository = new EFInfrastructureLogRepository(optionsBuilder.Options);
            await _infrastructureLogRepository.Database.OpenConnectionAsync().ConfigureAwait(false);

            await _infrastructureLogRepository.Database.EnsureCreatedAsync().ConfigureAwait(false);

            _infrastructureLogService = new InfrastructureLogService(_infrastructureLogRepository);
        }
 public LoanSubmissionController(IInfrastructureLogService infrastructureLogService, IConfigurationService configurationService)
 {
     _infrastructureLogService = infrastructureLogService;
     _configurationService     = configurationService;
     _releaseName = _configurationService.ConfigurationSettings.ReleaseName;
 }
Beispiel #4
0
 public InfrastructureLogsController(IInfrastructureLogService infrastructureLogService, IClientService clientService)
 {
     _infrastructureLogService = infrastructureLogService;
 }
Beispiel #5
0
 public OrderHistoryController(IInfrastructureLogService infrastructureLogService, IConfigurationService configurationService)
 {
     _infrastructureLogService = infrastructureLogService;
     _configurationService     = configurationService;
     _releaseName = _configurationService.ConfigurationSettings.ReleaseName;
 }