WindowInFocusStreamingTraceSourceExtensions.UseWindowInFocus Method

Definition

Overloads

UseWindowInFocus(IStreamingTraceSource, IWindowInFocusIntervalConsumer)

Registers a consumer to receive window-in-focus data when the trace is processed.

UseWindowInFocus(IStreamingTraceSource, WindowInFocusIntervalCallback)

Registers a consumer to receive window-in-focus data when the trace is processed.

UseWindowInFocus(IStreamingTraceSource, ConsumerSchedule, WindowInFocusIntervalCallback)

Registers a consumer to receive window-in-focus data when the trace is processed.

UseWindowInFocus(IStreamingTraceSource, IWindowInFocusIntervalConsumer)

Registers a consumer to receive window-in-focus data when the trace is processed.

public static void UseWindowInFocus (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.WindowInFocus.IWindowInFocusIntervalConsumer consumer);
static member UseWindowInFocus : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.WindowInFocus.IWindowInFocusIntervalConsumer -> unit
<Extension()>
Public Sub UseWindowInFocus (streamingTrace As IStreamingTraceSource, consumer As IWindowInFocusIntervalConsumer)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

consumer
IWindowInFocusIntervalConsumer

The callback to call with the event parsing result.

Remarks

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

Applies to

UseWindowInFocus(IStreamingTraceSource, WindowInFocusIntervalCallback)

Registers a consumer to receive window-in-focus data when the trace is processed.

public static void UseWindowInFocus (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.WindowInFocus.WindowInFocusIntervalCallback process);
static member UseWindowInFocus : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.WindowInFocus.WindowInFocusIntervalCallback -> unit
<Extension()>
Public Sub UseWindowInFocus (streamingTrace As IStreamingTraceSource, process As WindowInFocusIntervalCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

process
WindowInFocusIntervalCallback

The callback to register.

Applies to

UseWindowInFocus(IStreamingTraceSource, ConsumerSchedule, WindowInFocusIntervalCallback)

Registers a consumer to receive window-in-focus data when the trace is processed.

public static void UseWindowInFocus (this Microsoft.Windows.EventTracing.IStreamingTraceSource streamingTrace, Microsoft.Windows.EventTracing.ConsumerSchedule schedule, Microsoft.Windows.EventTracing.WindowInFocus.WindowInFocusIntervalCallback process);
static member UseWindowInFocus : Microsoft.Windows.EventTracing.IStreamingTraceSource * Microsoft.Windows.EventTracing.ConsumerSchedule * Microsoft.Windows.EventTracing.WindowInFocus.WindowInFocusIntervalCallback -> unit
<Extension()>
Public Sub UseWindowInFocus (streamingTrace As IStreamingTraceSource, schedule As ConsumerSchedule, process As WindowInFocusIntervalCallback)

Parameters

streamingTrace
IStreamingTraceSource

The trace from which to access the data.

schedule
ConsumerSchedule

The schedule indicating when to parse the events.

process
WindowInFocusIntervalCallback

The callback to register.

Applies to