TelemetryNotificationService 类

定义

遥测通知服务允许在发布与指定规则匹配的遥测事件时通知订阅者。

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
继承
TelemetryNotificationService
实现

注解

使用简单的互斥锁实现和 int 作为 ID,因为目前不需要此服务的大量异步使用量。

属性

Default

获取遥测通知服务的默认单一实例。

方法

SetSession(TelemetrySession)

设置要使用的会话

Subscribe(ITelemetryEventMatch, Action<TelemetryEvent>, Boolean)

订阅将在发布与指定筛选器匹配的遥测事件时获得通知。

Unsubscribe(Int32)

从通知服务取消订阅。

适用于