Table of Contents

Interface IAzureAppConfigurationService

Namespace
FoundationaLLM.Common.Services
Assembly
FoundationaLLM.Common.dll

Provides access to and management of Azure App Configuration.

public interface IAzureAppConfigurationService
Extension Methods

Methods

CheckAppConfigurationSettingExistsAsync(string)

Check if an individual Azure App Configuration key exists.

Task<bool> CheckAppConfigurationSettingExistsAsync(string key)

Parameters

key string

Returns

Task<bool>

CheckAppConfigurationSettingsExistAsync()

Returns a map of configuration setting keys and whether they exist in Azure App Configuration.

Task<Dictionary<string, bool>> CheckAppConfigurationSettingsExistAsync()

Returns

Task<Dictionary<string, bool>>

DeleteAppConfigurationSettingAsync(string)

Deletes an Azure App Configuration setting and its associated Azure Key Vault secret.

Task DeleteAppConfigurationSettingAsync(string key)

Parameters

key string

The App Configuration setting key.

Returns

Task

GetConfigurationSettingAsync(string)

Gets the value of a configuration setting from Azure App Configuration.

Task<string?> GetConfigurationSettingAsync(string key)

Parameters

key string

The App Configuration setting key.

Returns

Task<string>

GetConfigurationSettingsAsync(string)

Gets the values of configuration settings from Azure App Configuration.

Task<List<(string Key, string? Value, string ContentType)>> GetConfigurationSettingsAsync(string keyFilter)

Parameters

keyFilter string

The key name filter used to select the settings keys for which values are retrieved.

Returns

Task<List<(string Key, string Value, string ContentType)>>

GetFeatureFlagAsync(string)

Gets the value of a feature flag from Azure App Configuration.

Task<bool> GetFeatureFlagAsync(string key)

Parameters

key string

The App Configuration feature flag key.

Returns

Task<bool>

SetConfigurationSettingAsync(string, string, string)

Sets the value of a configuration setting in Azure App Configuration.

Task SetConfigurationSettingAsync(string key, string value, string contentType)

Parameters

key string

The App Configuration setting key.

value string

The value to set.

contentType string

The content type of the value.

Returns

Task

SetFeatureFlagAsync(string, bool)

Sets the value of a feature flag in Azure App Configuration.

Task SetFeatureFlagAsync(string key, bool flagEnabled)

Parameters

key string

The App Configuration feature flag key.

flagEnabled bool

Whether to enable the feature flag.

Returns

Task