TelemetryNotificationService 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
遥测通知服务允许在发布与指定规则匹配的遥测事件时通知订阅者。
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) |
从通知服务取消订阅。 |