Esempio n. 1
0
 public UserController(IOTContext context, IMapper mapper, IConfiguration config)
 {
     _service        = new UserService(context);
     _config         = config;
     _mapper         = mapper;
     _serviceService = new ServiceService(context);
 }
Esempio n. 2
0
 public DataController(IOTContext context, IMapper mapper)
 {
     _service                  = new ServiceLogService(new ServiceLogStorage(context));
     _servicesService          = new ServiceService(context);
     _servicePropertiesService = new ServicePropertiesService(context);
     _mapper = mapper;
 }
Esempio n. 3
0
 public async virtual Task <IActionResult> All()
 {
     using (var context = new IOTContext())
     {
         var devices = context.Device.ToList();
         return(this.Ok(devices));
     }
 }
Esempio n. 4
0
 public ServiceLogStorage(IOTContext context)
 {
     _context = context;
 }
 public CountrySignalsRepository(IOTContext iotContext)
 {
     _iotContext = iotContext;
 }
Esempio n. 6
0
 public ServiceService(IOTContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public ServiceController(IOTContext context, IMapper mapper)
 {
     _service = new ServiceService(context);
     _mapper  = mapper;
 }
 public ServicePropertiesService(IOTContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public UserService(IOTContext context)
 {
     _context = context;
 }