Repository navigation
4.0.0-preview
Pre-releaseMicrosoft.Extensions.Configuration.AzureAppConfiguration 4.0.0-preview
-
Breaking Change : Added enhanced support for applications that leverage Event Grid integration in App Configuration for configuration refresh. The following new API is introduced in
IConfigurationRefresherinterface, which can be called when an application responds to push notifications from Event Grid. This signals the application to reassess whether configuration should be updated on the next call toRefreshAsync()orTryRefreshAsync(). #133void SetDirty(TimeSpan? maxDelay = null)
-
Breaking Change : Added JSON content-type (e.g. MIME type
application/json) support for key-values in App Configuration. This allows primitive types, arrays, and JSON objects to be loaded properly toIConfiguration. Existing applications that use key-values with a valid JSON content-type may need to be updated. #191 -
Breaking Change : Added the following property to
IConfigurationRefresherto allow users to disambiguate instances of the interface when using multiple Azure App Configuration providers.Uri AppConfigurationEndpoint { get; }
-
Added support for applications to obtain
IConfigurationRefresherinstances through dependency injection (DI). This allows better control of when to callRefreshAsync()/TryRefreshAsync()or whether toawaitthe call. The following two APIs can be used to take advantage of this feature. #167- Call
IServiceCollection.AddAzureAppConfiguration()first to add required services to the DI container.public static IServiceCollection AddAzureAppConfiguration(this IServiceCollection services)
- Retrieve
IConfigurationRefresherinstances viaIConfigurationRefresherProviderinterface obtained through DI.public interface IConfigurationRefresherProvider { IEnumerable<IConfigurationRefresher> Refreshers { get; } }
- Call
Microsoft.Azure.AppConfiguration.AspNetCore 4.0.0-preview
-
Added multi-targeting support for .NET Core 3.1 besides .NET Standard 2.0. #173
-
Breaking Change : To leverage the new feature of dependency injection support for obtaining
IConfigurationRefresherinstances introduced in the4.0.0-previewversion of theMicrosoft.Extensions.Configuration.AzureAppConfigurationpackage, the following changes are made.-
Users must call
IServiceCollection.AddAzureAppConfiguration()inConfigureServices(...)to register the required services for configuration refresh before they can callIApplicationBuilder.UseAzureAppConfiguration(). This makes it easier to retrieve instances ofIConfigurationRefresherthrough dependency injection in a controller or a middleware, and have better control of when and how configuration is refreshed. -
An exception is thrown when the required services for configuration refresh could not be retrieved from the
IServiceCollectioninstance. #166
-
-
Breaking Change : Updated
Microsoft.Extensions.Configuration.AzureAppConfigurationreference to4.0.0-preview. See the release notes for more information on the changes.