Skip to content

Commit 5118685

Browse files
committed
Commenting Task.Delay(5000)
1 parent 506dbe6 commit 5118685

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/azure-monitor/app/console.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,13 @@ namespace ConsoleApp
169169
// before exit, flush the remaining data
170170
telemetryClient.Flush();
171171

172-
// Console apps should use the WorkerService package, which uses ServerTelemetryChannel and does not have synchronous flushing.
172+
// Console apps should use the WorkerService package.
173+
// This uses ServerTelemetryChannel which does not have synchronous flushing.
173174
// For this reason we add a short 5s delay in this sample.
174175
175176
Task.Delay(5000).Wait();
176177

177-
// If you are using InMemoryChannel, Flush() is synchronous and the short delay is not required.
178+
// If you're using InMemoryChannel, Flush() is synchronous and the short delay is not required.
178179
179180
}
180181

0 commit comments

Comments
 (0)