Skip to content

Commit ab44444

Browse files
author
Cecil Phillip
authored
Use async main
1 parent 4c83a2c commit ab44444

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

articles/azure-app-configuration/quickstart-feature-flag-dotnet.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,8 @@ The .NET Feature Management libraries extend the framework with comprehensive fe
6464
1. Update the `Main` method to connect to App Configuration, specifying the `UseFeatureFlags` option so that feature flags are retrieved. Then display a message if the `Beta` feature flag is enabled.
6565
6666
```csharp
67-
public static void Main(string[] args)
68-
{
69-
AsyncMain().Wait();
70-
}
71-
72-
private static async Task AsyncMain()
73-
{
67+
public static async Task Main(string[] args)
68+
{
7469
IConfigurationRoot configuration = new ConfigurationBuilder()
7570
.AddAzureAppConfiguration(options =>
7671
{

0 commit comments

Comments
 (0)