Skip to content

Commit

Permalink
Rename setting key
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand committed Feb 25, 2022
1 parent e9d5494 commit caf6136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AzureIoTHub.Portal/Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public abstract class ConfigHandler
protected const string OIDCClientIdKey = "OIDC:ClientId";
protected const string OIDCApiClientIdKey = "OIDC:ApiClientId";

protected const string LoRaFeatureSettingKey = "LoRaFeatureSetting";
protected const string IsLoRaFeatureEnabledKey = "LoRaFeature:Enabled";

protected const string StorageAccountConnectionStringKey = "StorageAccount:ConnectionString";
protected const string StorageAccountBlobContainerNameKey = "StorageAccount:BlobContainerName";
Expand Down Expand Up @@ -340,7 +340,7 @@ internal ProductionConfigHandler(IConfiguration config)

internal override string OIDCApiClientId => this.config[OIDCApiClientIdKey];

internal override bool IsLoRaEnabled => bool.Parse(this.config[LoRaFeatureSettingKey] ?? "true");
internal override bool IsLoRaEnabled => bool.Parse(this.config[IsLoRaFeatureEnabledKey] ?? "true");

internal override string StorageAccountBlobContainerName => this.config[StorageAccountBlobContainerNameKey];

Expand Down Expand Up @@ -382,7 +382,7 @@ internal DevelopmentConfigHandler(IConfiguration config)

internal override string OIDCApiClientId => this.config[OIDCApiClientIdKey];

internal override bool IsLoRaEnabled => bool.Parse(this.config[LoRaFeatureSettingKey] ?? "true");
internal override bool IsLoRaEnabled => bool.Parse(this.config[IsLoRaFeatureEnabledKey] ?? "true");

internal override string StorageAccountBlobContainerName => this.config[StorageAccountBlobContainerNameKey];

Expand Down

0 comments on commit caf6136

Please sign in to comment.