We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939b77a commit 3c33fdeCopy full SHA for 3c33fde
articles/azure-monitor/app/console.md
@@ -169,9 +169,8 @@ namespace ConsoleApp
169
// before exit, flush the remaining data
170
telemetryClient.Flush();
171
172
- // flush is not blocking when not using InMemoryChannel so wait a bit. There is an active issue regarding the need for `Sleep`/`Delay`
173
- // which is tracked here: https://github.com/microsoft/ApplicationInsights-dotnet/issues/407
174
- Task.Delay(5000).Wait();
+ // Flush() is synchronous when using InMemoryChannel; otherwise a short delay is required.
+ // Task.Delay(5000).Wait();
175
176
}
177
0 commit comments