예제 #1
0
        public CadastroService(ILogger <CadastroService> logger, IConfiguration config, MonitoramentoContext context)
        {
            this._logger  = logger;
            this._context = context;

            this._clientHttp = new HttpClient();

            this.host = config.GetSection("ConfigApp").GetSection("host").Value;
            this.port = ConfigurationBinder.GetValue <int>(config.GetSection("ConfigApp"), "port", 80);
        }
예제 #2
0
 public HardwareMonitoramentoRepository(IRepository <HardwareMonitoramento> repository,
                                        MonitoramentoContext context) : base(context)
 {
     _repository = repository;
 }
 public ResidenciasUsuariosController(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #4
0
 public RegiaoService(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #5
0
 public SensorService(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #6
0
 public RepositorioBaseEF(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #7
0
 public AreaRepository(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #8
0
 public UsuariosController(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #9
0
 public BarragemService(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #10
0
 public AparelhosController(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #11
0
 public AlertaSensorRepository(MonitoramentoContext context)
 {
     _context = context;
 }
예제 #12
0
 public UnitOfWork(MonitoramentoContext monitoramentoContext)
 {
     _monitoramentoContext = monitoramentoContext;
 }
 public AmbientesController(MonitoramentoContext context)
 {
     _context = context;
 }