示例#1
0
 public DeviceConfigSpeedingThresholdsService(IInjectConfig injectConfig, IDeviceConfigRepository deviceConfigRepository, IEnumerable <IRequestValidator <DeviceConfigRequestBase> > deviceConfigRequestValidators, IEnumerable <IRequestValidator <DeviceConfigSpeedingThresholdsRequest> > SpeedingThresholdsValidators,
                                              IEnumerable <IRequestValidator <IServiceRequest> > serviceRequestValidators,
                                              IAssetDeviceRepository assetDeviceRepository,
                                              IOptions <Configurations> configurations,
                                              IParameterAttributeCache parameterAttributeCache, IMapper mapper, IMessageConstructor messageConstructor, IAckBypasser ackBypasser, IDeviceConfigSettingConfig settingsConfig, ITransactions transactions, ILoggingService loggingService) : base(injectConfig, deviceConfigRepository, parameterAttributeCache, mapper, assetDeviceRepository, messageConstructor, ackBypasser, settingsConfig, configurations, transactions, loggingService)
 {
     this._deviceConfigRequestValidators = deviceConfigRequestValidators;
     this._serviceRequestValidators      = serviceRequestValidators;
     this._SpeedingThresholdsValidators  = SpeedingThresholdsValidators;
     this._loggingService.CreateLogger(this.GetType());
 }
示例#2
0
 protected DeviceConfigTemplateBase(IInjectConfig injectInfo,
                                    IDeviceConfigRepository deviceConfigRepository,
                                    IParameterAttributeCache parameterAttributeCache,
                                    IMapper mapper, ILoggingService loggingService,
                                    IEnumerable <IRequestValidator <IServiceRequest> > requestInvalidateValidators,
                                    IEnumerable <IRequestValidator <DeviceConfigRequestBase> > commonDeviceLevelValidators,
                                    IAssetDeviceRepository assetDeviceRepository,
                                    IMessageConstructor messageConstructor, IAckBypasser ackBypasser, IOptions <Configurations> configurations, IDeviceConfigSettingConfig settingsConfig, ITransactions transactions) :
     base(injectInfo, deviceConfigRepository, parameterAttributeCache, mapper, assetDeviceRepository, messageConstructor, ackBypasser, settingsConfig, configurations, transactions, loggingService)
 {
     _requestInvalidateValidators = requestInvalidateValidators;
     _commonDeviceLevelValidators = commonDeviceLevelValidators;
     _parameterAttributeCache     = parameterAttributeCache;
 }
示例#3
0
 public DeviceConfigSwitchesService(
     IEnumerable <IRequestValidator <IServiceRequest> > requestInvalidateValidators,
     IEnumerable <IRequestValidator <DeviceConfigRequestBase> > commonDeviceLevelValidators,
     ISwitchesValidator switchesValidator,
     IInjectConfig injectConfig,
     IDeviceConfigRepository deviceConfigRepository,
     IParameterAttributeCache parameterAttributeCache,
     IMessageConstructor messageConstructor,
     IAckBypasser ackBypasser, IDeviceConfigSettingConfig settingsConfig,
     IAssetDeviceRepository assetDeviceRepository,
     IOptions <Configurations> configurations,
     IMapper mapper, ILoggingService loggingService, ITransactions transactions) :
     base(injectConfig, deviceConfigRepository, parameterAttributeCache, mapper, loggingService, requestInvalidateValidators, commonDeviceLevelValidators,
          assetDeviceRepository, messageConstructor, ackBypasser, configurations, settingsConfig, transactions)
 {
     _attributeToRequestMaps           = injectConfig.ResolveKeyed <DeviceConfigAttributeToRequestMaps>("DeviceConfigAttributeToRequestMaps");
     _requestToAttributeMaps           = injectConfig.ResolveKeyed <DeviceConfigRequestToAttributeMaps>("DeviceConfigRequestToAttributeMaps");
     _switchesValidtor                 = switchesValidator;
     _sendAllSwitchesDeviceFamilyLists = configurations.Value.AppSettings.DeviceConfigSendAllSwitchesDeviceFamilyLists.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
 }
示例#4
0
 protected DeviceConfigRepositoryServiceBase(IInjectConfig injectInfo, IDeviceConfigRepository deviceConfigRepository, IParameterAttributeCache parameterAttributeCache, IMapper mapper,
                                             IAssetDeviceRepository assetDeviceRepository,
                                             IMessageConstructor messageConstructor,
                                             IAckBypasser ackBypasser,
                                             IDeviceConfigSettingConfig settingsConfig,
                                             IOptions <Configurations> configurations,
                                             ITransactions transactions,
                                             ILoggingService loggingService) : base(parameterAttributeCache, mapper, loggingService)
 {
     this._attributeMaps          = injectInfo.ResolveKeyed <DeviceConfigAttributeToRequestMaps>("DeviceConfigAttributeToRequestMaps");
     this._deviceConfigRepository = deviceConfigRepository;
     this._loggingService.CreateLogger(this.GetType());
     this._messageConstructor        = messageConstructor;
     this._ackBypasser               = ackBypasser;
     this._settingsConfig            = settingsConfig;
     this._assetDeviceRepository     = assetDeviceRepository;
     this._deviceService             = new MessageConstructorDeviceService(configurations);
     this._deviceTypeFamilyContainer = _deviceService.GetDeviceTypeFamily();
     this._configurations            = configurations;
     //this._assetDeviceConfigApiUrl = ConfigurationManager.AppSettings["PendingDeviceConfigApiUri"];
     this._pendingClearOffDeviceTypes = _configurations.Value.AppSettings.ClearOffPendingValueForDeviceTypes.Split(',').ToList();
     this._pendingClearOffDays        = _configurations.Value.AppSettings.ClearOffPendingValueGreaterThanNoOfDays;
     this._transactions = transactions;
 }
示例#5
0
 public MetersValidator(IParameterAttributeCache parameterAttributeCache, IDeviceConfigRepository deviceConfigRepository, IAssetDeviceRepository assetDeviceRepository, ILoggingService loggingService) : base(loggingService)
 {
     this._parameterAttributeCache = parameterAttributeCache;
     this._assetDeviceRepository   = assetDeviceRepository;
     this._deviceConfigRepository  = deviceConfigRepository;
 }
示例#6
0
 public AssetDeviceValidator(ILoggingService loggingService, IAssetDeviceRepository asssetDeviceRepo) : base(loggingService)
 {
     _asssetDeviceRepo = asssetDeviceRepo;
 }