public ILoRaADRManager Create(ILoRaADRStrategyProvider strategyProvider, ILoRaDeviceFrameCounterUpdateStrategy frameCounterStrategy, LoRaDevice loRaDevice) { if (loRaDevice is null) { throw new ArgumentNullException(nameof(loRaDevice)); } return(!string.IsNullOrEmpty(loRaDevice.GatewayID) ? new LoRaADRDefaultManager(CurrentInMemoryStore, strategyProvider, frameCounterStrategy, loRaDevice, this.loggerFactory.CreateLogger <LoRaADRDefaultManager>()) : new LoRaADRMultiGatewayManager(loRaDevice, this.loRaDeviceAPIService, this.loggerFactory.CreateLogger <LoRaADRMultiGatewayManager>())); }
public DefaultLoRaDataRequestHandler( NetworkServerConfiguration configuration, ILoRaDeviceFrameCounterUpdateStrategyProvider frameCounterUpdateStrategyProvider, ILoRaPayloadDecoder payloadDecoder, IDeduplicationStrategyFactory deduplicationFactory, ILoRaADRStrategyProvider loRaADRStrategyProvider, ILoRAADRManagerFactory loRaADRManagerFactory, IFunctionBundlerProvider functionBundlerProvider, IClassCDeviceMessageSender classCDeviceMessageSender = null) { this.configuration = configuration; this.frameCounterUpdateStrategyProvider = frameCounterUpdateStrategyProvider; this.payloadDecoder = payloadDecoder; this.deduplicationFactory = deduplicationFactory; this.classCDeviceMessageSender = classCDeviceMessageSender; this.loRaADRStrategyProvider = loRaADRStrategyProvider; this.loRaADRManagerFactory = loRaADRManagerFactory; this.functionBundlerProvider = functionBundlerProvider; }
public TestLoRaDeviceFactory( NetworkServerConfiguration configuration, ILoRaDeviceFrameCounterUpdateStrategyProvider frameCounterUpdateStrategyProvider, ILoRaDeviceClient loRaDeviceClient, IDeduplicationStrategyFactory deduplicationFactory, ILoRaADRStrategyProvider adrStrategyProvider, ILoRAADRManagerFactory adrManagerFactory, IFunctionBundlerProvider functionBundlerProvider, ILoRaDeviceClientConnectionManager connectionManager) : this(loRaDeviceClient) { this.configuration = configuration; this.frameCounterUpdateStrategyProvider = frameCounterUpdateStrategyProvider; this.deduplicationFactory = deduplicationFactory; this.adrStrategyProvider = adrStrategyProvider; this.adrManagerFactory = adrManagerFactory; this.functionBundlerProvider = functionBundlerProvider; this.connectionManager = connectionManager; }
public TestDefaultLoRaRequestHandler( NetworkServerConfiguration configuration, ILoRaDeviceFrameCounterUpdateStrategyProvider frameCounterUpdateStrategyProvider, IConcentratorDeduplication concentratorDeduplication, ILoRaPayloadDecoder payloadDecoder, IDeduplicationStrategyFactory deduplicationFactory, ILoRaADRStrategyProvider loRaADRStrategyProvider, ILoRAADRManagerFactory loRaADRManagerFactory, IFunctionBundlerProvider functionBundlerProvider, ITestOutputHelper testOutputHelper) : base( configuration, frameCounterUpdateStrategyProvider, concentratorDeduplication, payloadDecoder, deduplicationFactory, loRaADRStrategyProvider, loRaADRManagerFactory, functionBundlerProvider, new TestOutputLogger <DefaultLoRaDataRequestHandler>(testOutputHelper), TestMeter.Instance) { this.configuration = configuration; }
public LoRaADRManagerBase(ILoRaADRStore store, ILoRaADRStrategyProvider strategyProvider, ILogger <LoRaADRManagerBase> logger) { this.store = store; this.strategyProvider = strategyProvider; this.logger = logger; }
public ILoRaADRManager Create(ILoRaADRStrategyProvider strategyProvider, ILoRaDeviceFrameCounterUpdateStrategy frameCounterStrategy, LoRaDevice loRaDevice) { return(!string.IsNullOrEmpty(loRaDevice.GatewayID) ? new LoRaADRDefaultManager(CurrentInMemoryStore, strategyProvider, frameCounterStrategy, loRaDevice) : new LoRaADRMultiGatewayManager(loRaDevice, this.loRaDeviceAPIService)); }
public LoRaADRServerManager(ILoRaADRStore store, ILoRaADRStrategyProvider strategyProvider, ILoRaDeviceCacheStore deviceCacheStore) : base(store, strategyProvider) { this.deviceCacheStore = deviceCacheStore; }
public LoRaADRDefaultManager(ILoRaADRStore store, ILoRaADRStrategyProvider strategyProvider, ILoRaDeviceFrameCounterUpdateStrategy frameCounterStrategy, LoRaDevice loRaDevice, ILogger <LoRaADRDefaultManager> logger) : base(store, strategyProvider, logger) { LoRaDevice = loRaDevice; this.frameCounterStrategy = frameCounterStrategy; }