public BasicsStationNetworkServerStartup(IConfiguration configuration)
 {
     Configuration = configuration;
     NetworkServerConfiguration = NetworkServerConfiguration.CreateFromEnvironmentVariables();
 }
 public RegistryMetricTagBag(NetworkServerConfiguration networkServerConfiguration)
 {
     GatewayId = string.IsNullOrEmpty(networkServerConfiguration.GatewayID) ? "unknown" : networkServerConfiguration.GatewayID;
 }
Ejemplo n.º 3
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;
 }