다음을 통해 공유


TelemetryNotificationService Class

Definition

Telemetry notification service allows subscribers to be notified when telemetry event matching a specified rule is posted.

public ref class TelemetryNotificationService : Microsoft::VisualStudio::Telemetry::ISetTelemetrySession, Microsoft::VisualStudio::Telemetry::Notification::ITelemetryNotificationService
public class TelemetryNotificationService : Microsoft.VisualStudio.Telemetry.ISetTelemetrySession, Microsoft.VisualStudio.Telemetry.Notification.ITelemetryNotificationService
type TelemetryNotificationService = class
    interface ITelemetryNotificationService
    interface ISetTelemetrySession
Public Class TelemetryNotificationService
Implements ISetTelemetrySession, ITelemetryNotificationService
Inheritance
TelemetryNotificationService
Implements

Remarks

Using a simple mutual-exclusion lock implementation and int as ID because heavy async consumptions of this service is not expected at this time.

Properties

Default

Gets the default singleton instance of the telemetry notifications service.

Methods

SetSession(TelemetrySession)

set the session to be used

Subscribe(ITelemetryEventMatch, Action<TelemetryEvent>, Boolean)

Subscribes to be notified when a telemetry event matching the specified filter is posted.

Unsubscribe(Int32)

Unsubscribes from the notification service.

Applies to