Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Created April 24, 2019 19:30
Show Gist options
  • Save JanneMattila/d2f773f1f52f14edc37415058e4b52b7 to your computer and use it in GitHub Desktop.
Save JanneMattila/d2f773f1f52f14edc37415058e4b52b7 to your computer and use it in GitHub Desktop.
Azure App Configuration
// ...
config.AddAzureAppConfiguration(options =>
{
// Use with connection string:
// options.Connect(connectionString)
// or with managed identity:
options.ConnectWithManagedIdentity(endpoint)
.Use("FeatureToggler:*")
.WatchAndReloadAll("FeatureToggler:UpdateKey", TimeSpan.FromSeconds(5));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment