Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename LoRa Feature Setting #332

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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