コード例 #1
0
 public EntityService(IEntityRepository entityRepository, ILogger logger, IDeviceRepository deviceRepository)
 {
     _logger           = logger;
     _entityRepository = entityRepository;
     _deviceRepository = deviceRepository;
     _iotConnectClient = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #2
0
 public RoleService(IRoleRepository userRoleRepository, ILogger logger, IUserRepository userRepository)
 {
     _logger           = logger;
     _roleRepository   = userRoleRepository;
     _userRepository   = userRepository;
     _iotConnectClient = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #3
0
 public NotificationsService(INotificationsRepository notificationsRepository, IKitTypeService kitTypeService, LogHandler.Logger logger)
 {
     _logger = logger;
     _inotificationsrepository = notificationsRepository;
     _kitTypeService           = kitTypeService;
     _iotConnectClient         = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
 public ElevatorMaintenanceService(IElevatorMaintenanceRepository entityMaintenanceRepository, IEntityRepository entityRepository, ILogger logger)
 {
     _logger = logger;
     _elevatorMaintenanceRepository = entityMaintenanceRepository;
     _entityRepository = entityRepository;
     _iotConnectClient = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #5
0
 public LocationService(ILocationRepository locationRepository, LogHandler.Logger logger, IGeneratorRepository generatorRepository, IGeneratorService generatorService)
 {
     _logger              = logger;
     _locationRepository  = locationRepository;
     _generatorRepository = generatorRepository;
     _iotConnectClient    = new IotConnectClient(component.helper.SolutionConfiguration.BearerToken, component.helper.SolutionConfiguration.Configuration.EnvironmentCode, component.helper.SolutionConfiguration.Configuration.SolutionKey);
     _generatorService    = generatorService;
 }
コード例 #6
0
 public DeviceService(IDeviceRepository deviceRepository, ILookupService lookupService, IHardwareKitRepository hardwareKitRepository, LogHandler.Logger logger)
 {
     _logger                = logger;
     _deviceRepository      = deviceRepository;
     _lookupService         = lookupService;
     _hardwareKitRepository = hardwareKitRepository;
     _iotConnectClient      = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #7
0
 public GreenHouseService(IGreenHouseRepository greenHouseRepository, ICropRepository cropRepository, LogHandler.Logger logger, IDeviceRepository deviceRepository)
 {
     _logger = logger;
     _greenHouseRepository = greenHouseRepository;
     _cropRepository       = cropRepository;
     _deviceRepository     = deviceRepository;
     _iotConnectClient     = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #8
0
 public SubscriberService(LogHandler.Logger logger, IHardwareKitRepository hardwareKitRepository, IUserRepository userRepository, ICompanyRepository companyRepository)
 {
     _logger = logger;
     _hardwareKitRepository = hardwareKitRepository;
     _companyRepository     = companyRepository;
     _userRepository        = userRepository;
     _subscriberHelper      = new SubscriberHelper(logger);
     _iotConnectClient      = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #9
0
 public LookupService(LogHandler.Logger logManager, IDeviceRepository deviceRepository, IkitTypeCommandRepository kitTypeCommandRepository
                      , IEntityRepository entityRepository, IHardwareKitRepository hardwareKitRepository
                      , ICompanyRepository companyRepository
                      , IKitTypeRepository kitTypeRepository, IKitTypeAttributeRepository kitTypeAttributeRepository)
 {
     _logger                     = logManager;
     _deviceRepository           = deviceRepository;
     _kitTypeCommandRepository   = kitTypeCommandRepository;
     _entityRepository           = entityRepository;
     _hardwareKitRepository      = hardwareKitRepository;
     _companyRepository          = companyRepository;
     _kitTypeAttributeRepository = kitTypeAttributeRepository;
     _kitTypeRepository          = kitTypeRepository;
     _iotConnectClient           = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #10
0
 public LookupService(LogHandler.Logger logManager, IGeneratorRepository deviceRepository, IkitTypeCommandRepository kitTypeCommandRepository
                      , ILocationRepository locationRepository, IHardwareKitRepository hardwareKitRepository
                      , ICompanyRepository companyRepository
                      , IKitTypeRepository kitTypeRepository, IKitTypeAttributeRepository kitTypeAttributeRepository)
 {
     _logger                     = logManager;
     _deviceRepository           = deviceRepository;
     _kitTypeCommandRepository   = kitTypeCommandRepository;
     _locationRepository         = locationRepository;
     _hardwareKitRepository      = hardwareKitRepository;
     _companyRepository          = companyRepository;
     _kitTypeAttributeRepository = kitTypeAttributeRepository;
     _kitTypeRepository          = kitTypeRepository;
     _iotConnectClient           = new IotConnectClient(component.helper.SolutionConfiguration.BearerToken, component.helper.SolutionConfiguration.Configuration.EnvironmentCode, component.helper.SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #11
0
 public UserService(IUserRepository userRepository, LogHandler.Logger logManager)
 {
     _logger           = logManager;
     _userRepository   = userRepository;
     _iotConnectClient = new IotConnectClient(component.helper.SolutionConfiguration.BearerToken, component.helper.SolutionConfiguration.Configuration.EnvironmentCode, component.helper.SolutionConfiguration.Configuration.SolutionKey);
 }
コード例 #12
0
 public RuleService(INotificationsRepository notificationsRepository, LogHandler.Logger logger)
 {
     _notificationsRepository = notificationsRepository;
     _logger           = logger;
     _iotConnectClient = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }