コード例 #1
0
 public CompraDetalleController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory)
 {
     _productoGateway      = new ProductoGateway(databaseSettings);
     _compraGateway        = new CompraGateway(databaseSettings, loggerFactory);
     _compraDetalleGateway = new CompraDetalleGateway(databaseSettings, loggerFactory);
     _afiliadoGateway      = new AfiliadoGateway(databaseSettings, loggerFactory);
     _logger = loggerFactory.CreateLogger <CompraDetalleController>();
 }
コード例 #2
0
 public BeneficiarioController(IOptions <AppSettings> databaseSettings, ILoggerFactory loggerFactory)
 {
     _beneficiarioGateway = new BeneficiarioGateway(databaseSettings, loggerFactory);
     _afiliadoGateway     = new AfiliadoGateway(databaseSettings, loggerFactory);
     _logger = loggerFactory.CreateLogger <BeneficiarioController>();
 }