Exemple #1
0
 public MeterController(IMeterService meterService, IServicesUtils servicesUtils,
                        IEventService eventService)
 {
     _meterService  = meterService;
     _servicesUtils = servicesUtils;
     _eventService  = eventService;
 }
Exemple #2
0
 public MeterController(ILogger <MeterController> logger, IUnitOfWork unitOfWork, IMapper mapper, IMeterService meterService)
 {
     _mapper       = mapper;
     _logger       = logger;
     _unitOfWork   = unitOfWork;
     _meterService = meterService;
 }
Exemple #3
0
 public LookupController(
     IRepository <Point> pointRepository,
     IRepository <MeterEvent> meterEventRepository,
     ISiteService siteService,
     ISecurityGroupService securityGroupService,
     IMeterService meterService,
     IUserService userService,
     IAttributeService attributeService,
     ITechnicianService technicianService,
     ITeamService teamService,
     IItemService itemService,
     IAssetService assetService,
     IWorkOrderService workOrderService,
     ILocationService locationService,
     IStoreService storeService,
     IServiceRequestService serviceRequestService,
     ICompanyService companyService)
 {
     this._pointRepository       = pointRepository;
     this._meterEventRepository  = meterEventRepository;
     this._siteService           = siteService;
     this._securityGroupService  = securityGroupService;
     this._meterService          = meterService;
     this._userService           = userService;
     this._attributeService      = attributeService;
     this._technicianService     = technicianService;
     this._teamService           = teamService;
     this._itemService           = itemService;
     this._assetService          = assetService;
     this._workOrderService      = workOrderService;
     this._locationService       = locationService;
     this._storeService          = storeService;
     this._serviceRequestService = serviceRequestService;
     this._companyService        = companyService;
 }
Exemple #4
0
 public PointController(IRepository <Point> pointRepository,
                        IRepository <PointMeterLineItem> pointMeterLineItemRepository,
                        IRepository <MeterLineItem> meterLineItemRepository,
                        IRepository <Reading> readingRepository,
                        IRepository <MeterEvent> meterEventRepository,
                        IRepository <MeterEventHistory> meterEventHistoryRepository,
                        IMeterService meterService,
                        IDateTimeHelper dateTimeHelper,
                        ILocalizationService localizationService,
                        IPermissionService permissionService,
                        HttpContextBase httpContext,
                        IWorkContext workContext,
                        IDbContext dbContext)
 {
     this._pointRepository = pointRepository;
     this._pointMeterLineItemRepository = pointMeterLineItemRepository;
     this._meterLineItemRepository      = meterLineItemRepository;
     this._readingRepository            = readingRepository;
     this._meterEventRepository         = meterEventRepository;
     this._meterEventHistoryRepository  = meterEventHistoryRepository;
     this._meterService        = meterService;
     this._localizationService = localizationService;
     this._dateTimeHelper      = dateTimeHelper;
     this._permissionService   = permissionService;
     this._httpContext         = httpContext;
     this._workContext         = workContext;
     this._dbContext           = dbContext;
 }
Exemple #5
0
 public CommandService(IMeterService meterService, IServicesUtils servicesUtils,
                       IMiddlewareProviderService middlewareProviderService, IMapper mapper, IThreadService threadService,
                       ITicketService ticketService, IEventHubService eventHubService)
 {
     _meterService              = meterService;
     _servicesUtils             = servicesUtils;
     _middlewareProviderService = middlewareProviderService;
     _ticketService             = ticketService;
     _mapper          = mapper;
     _threadService   = threadService;
     _eventHubService = eventHubService;
 }
Exemple #6
0
 public DomainService(
     IDomainState domainState,
     IMeterService meterService,
     IRepository <IMachineAdapter> machineRepository,
     IRepository <IMonitorAdapter> monitorRepository,
     IValidator <IMachineAdapter> machineValidator,
     IValidator <IMonitorAdapter> monitorValidator)
 {
     _domainState       = domainState.Guard(nameof(domainState));
     _meterService      = meterService.Guard(nameof(meterService));
     _machineRepository = machineRepository.Guard(nameof(machineRepository));
     _monitorRepository = monitorRepository.Guard(nameof(monitorRepository));
     _machineValidator  = machineValidator.Guard(nameof(machineValidator));
     _monitorValidator  = monitorValidator.Guard(nameof(monitorValidator));
 }
Exemple #7
0
 public ThreadService(IMqttClientMethods mqttClientMethods, IMqttClientConfiguration mqttClientConfiguration,
                      IOptions <Forwarder> forwarderConfig, IServiceProvider serviceProvider, ISmcService smcService,
                      IOptions <CommandRules> commandRules, IEventService eventService,
                      IForwarderSenderService forwarderSenderService, IMeterService meterService)
 {
     _mqttClientConfiguration = mqttClientConfiguration;
     _mqttClientMethods       = mqttClientMethods;
     _brokerSettings          = forwarderConfig.Value.Mqtt.BrokerSettings;
     _baseClientSettings      = forwarderConfig.Value.Mqtt.CommandsBaseClientSettings;
     _subscribeTopic          = forwarderConfig.Value.Mqtt.BaseCommandsSubscribeTopic;
     _smcService   = smcService;
     _commandRules = commandRules.Value;
     _eventService = eventService;
     _eventService.AThreadIsShuttingDown += AThreadIsShuttingDown;
     _forwarderSenderService              = forwarderSenderService;
     _meterService = meterService;
 }
Exemple #8
0
 public MeterController(IRepository <Meter> meterRepository,
                        IMeterService meterService,
                        IRepository <UnitOfMeasure> unitOfMeasureRepository,
                        ILocalizationService localizationService,
                        IPermissionService permissionService,
                        HttpContextBase httpContext,
                        IWorkContext workContext,
                        IDbContext dbContext)
 {
     this._meterRepository         = meterRepository;
     this._localizationService     = localizationService;
     this._meterService            = meterService;
     this._unitOfMeasureRepository = unitOfMeasureRepository;
     this._permissionService       = permissionService;
     this._httpContext             = httpContext;
     this._workContext             = workContext;
     this._dbContext = dbContext;
 }
 public MiddlewaresMessageHandlerService(IThreadService threadService, IMeterEnergyService meterEnergyService,
                                         IMeterService meterService, IMapper mapper, IDeviceLogService deviceLogService, ISmcService smcService,
                                         ISmcAlarmService smcAlarmService, IMeterAlarmService meterAlarmService, ISmcUnregisteredService smcUnregisteredService, IModemService modemService,
                                         IMeterUnregisteredService meterUnregisteredService, IEventHubService eventHubService)
 {
     _threadService            = threadService;
     _meterEnergyService       = meterEnergyService;
     _meterService             = meterService;
     _deviceLogService         = deviceLogService;
     _smcService               = smcService;
     _smcAlarmService          = smcAlarmService;
     _meterAlarmService        = meterAlarmService;
     _smcUnregisteredService   = smcUnregisteredService;
     _meterUnregisteredService = meterUnregisteredService;
     _modemService             = modemService;
     _mapper          = mapper;
     _eventHubService = eventHubService;
 }
Exemple #10
0
 public MeterReadingController(ILogger <MeterReadingController> logger, IRepository repository, IMeterService meterService)
 {
     _logger       = logger;
     _repo         = repository;
     _meterService = meterService;
 }
 public MeterEnergyService(IMapper mapper, IMeterEnergyRepository meterEnergyRepository, IMeterService meterService)
 {
     _mapper = mapper;
     _meterEnergyRepository = meterEnergyRepository;
     _meterService          = meterService;
 }
 public SampleDataController(IMeterService meterService)
 {
     this.meterService = meterService;
 }
Exemple #13
0
 public MeterController(IMeterService meterService)
 {
     this.meterService = meterService;
 }
Exemple #14
0
 public MeterAlarmService(IMeterAlarmRepository meterAlarmRepository, IMapper mapper, IMeterService meterService)
 {
     _meterService         = meterService;
     _meterAlarmRepository = meterAlarmRepository;
     _mapper = mapper;
 }
 public BuildingService()
 {
     this.dbContext    = new PowerGridEntities();
     this.context      = new ContextInfoAccessorService();
     this.meterService = new MeterService();
 }
Exemple #16
0
 public MeterService(string ConnectionString, int key, IMeterService <IMeter <IMeterDocument>, IMeterDocument> next) : this(ConnectionString, key)
 {
     _next = next;
 }
Exemple #17
0
 public MeterMiddleware(RequestDelegate next, IMeterService <MeterDocument, Document> service)
 {
     this._next = next;
     _service   = service;
 }
Exemple #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeterController"/> class.
 /// </summary>
 public MeterController()
 {
     this.meterService = new MeterService();
 }
Exemple #19
0
 public MetersController(IMeterService meterService)
 {
     _meterService = meterService ?? throw new ArgumentNullException(nameof(meterService));
 }
Exemple #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InsightService"/> class.
 /// </summary>
 public InsightService()
 {
     this.dbContext    = new PowerGridEntities();
     this.meterService = new MeterService();
 }