Edit

Share via


ITraceSource.Use(IEventConsumer) Method

Definition

Registers a consumer to receive events when the trace is processed.

public void Use (Microsoft.Windows.EventTracing.IEventConsumer consumer);
abstract member Use : Microsoft.Windows.EventTracing.IEventConsumer -> unit
Public Sub Use (consumer As IEventConsumer)

Parameters

consumer
IEventConsumer

The event consumer to register.

Remarks

Event consumers that do not need to receive events from all providers should inherit from IFilteredEventConsumer for better performance.

Event consumers that need to run across two passes through the trace can inherit from ITwoPassEventConsumer (or the related IFilteredTwoPassEventConsumer and/or ICompletableTwoPassEventConsumer).

Event consumers that need to run in a specific pass can inherit from IScheduledConsumer.

This part of the API is in preview and under active development. It may change in future releases.

Applies to