Skip to content

Commit 506dbe6

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-monitor/app/console.md

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

172-
// As noted at the beginning of this article, Console apps should use the WorkerService package.
173-
// WorkerService uses ServerTelemetryChannel and does not have synchronous flushing.
172+
// Console apps should use the WorkerService package, which uses ServerTelemetryChannel and does not have synchronous flushing.
173+
// For this reason we add a short 5s delay in this sample.
174174
175175
Task.Delay(5000).Wait();
176176

177-
// Flush() is synchronous when using InMemoryChannel, in which case the short delay is not required.
177+
// If you are using InMemoryChannel, Flush() is synchronous and the short delay is not required.
178178
179179
}
180180

0 commit comments

Comments
 (0)