You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`builder.Services.AddAzureAppConfiguration()` adds the `IConfigurationRefreshProvider` service to the DI container, which gives you access to the refreshers of all Azure App Configuration sources in the application's configuration.
289
289
290
-
#### ASP.NET Core applications
290
+
#####ASP.NET Core applications
291
291
292
292
For ASP.NET Core applications, you can use the `Microsoft.Azure.AppConfiguration.AspNetCore` package to achieve [request-driven configuration refresh](./enable-dynamic-configuration-aspnet-core.md#request-driven-configuration-refresh) with a built-in middleware.
293
293
@@ -315,7 +315,7 @@ app.UseRouting();
315
315
316
316
The `AzureAppConfigurationRefreshMiddleware` automatically checks for configuration changes at the configured refresh interval. This approach is efficient as it only refreshes when both conditions are met: an HTTP request is received and the refresh interval has elapsed.
317
317
318
-
#### Background services
318
+
#####Background services
319
319
320
320
For background services, you can inject the `IConfigurationRefresherProvider` service and manually refresh each of the registered refreshers.
321
321
@@ -583,8 +583,8 @@ Azure App Configuration enables you to configure secret refresh intervals indepe
583
583
584
584
To ensure your application always uses the most current secret values, configure the `SetSecretRefreshInterval` method. This forces the provider to retrieve fresh secret values from Key Vault when:
585
585
586
-
1. Your application calls `IConfigurationRefresher.TryRefreshAsync`
587
-
2. The configured refresh interval for the secret has elapsed
586
+
- Your application calls `IConfigurationRefresher.TryRefreshAsync`
587
+
- The configured refresh interval for the secret has elapsed
588
588
589
589
This mechanism works even when no changes are detected in your App Configuration store, ensuring your application stays in sync with rotated secrets.
0 commit comments