Skip to content

DiagnosticEventCollector.CreateEventAwaiter(string)

CreateEventAwaiter(string)

View source
public TaskCompletionSource<DiagnosticEvent> CreateEventAwaiter(string eventName)
Creates a task that completes when the specified event is captured. Unlike WaitForEventAsync, this does not check for existing events.

Parameters

eventNamestring
The name of the event to wait for.

Returns

A task completion source that will be completed when the event is captured.