Exemplo n.º 1
0
 private TestDeviceCache(Action <LoRaDevice> onRefreshDevice, LoRaDeviceCacheOptions options, NetworkServerConfiguration networkServerConfiguration, bool callDeviceRefresh = false, Func <LoRaDevice, LoRaPayload, bool> validateMic = null) : base(options, networkServerConfiguration, NullLogger <LoRaDeviceCache> .Instance, TestMeter.Instance)
 {
     this.onRefreshDevice   = onRefreshDevice;
     this.callDeviceRefresh = callDeviceRefresh;
     this.configuration     = networkServerConfiguration;
     this.validateMic       = validateMic;
     this.cacheOptions      = options;
 }
Exemplo n.º 2
0
 public TestDeviceCache(Action <LoRaDevice> onRefreshDevice, LoRaDeviceCacheOptions options, bool callDeviceRefresh)
     : this(onRefreshDevice, options, new NetworkServerConfiguration(), callDeviceRefresh : callDeviceRefresh)
 {
 }
Exemplo n.º 3
0
 public TestDeviceCache(Action <LoRaDevice> onRefreshDevice, LoRaDeviceCacheOptions options)
     : this(onRefreshDevice, options, new NetworkServerConfiguration())
 {
 }
Exemplo n.º 4
0
 public TestDeviceCache(LoRaDeviceCacheOptions options)
     : this(null, options, new NetworkServerConfiguration())
 {
 }
Exemplo n.º 5
0
 public TestDeviceCache(LoRaDeviceCacheOptions options, bool callDeviceRefresh)
     : this(null, options, new NetworkServerConfiguration(), callDeviceRefresh)
 {
 }
Exemplo n.º 6
0
 public TestDeviceCache(LoRaDeviceCacheOptions options, Func <LoRaDevice, LoRaPayload, bool> validateMic)
     : this(null, options, new NetworkServerConfiguration(), validateMic : validateMic)
 {
 }