UniversalTelemetryChannel 类

定义

注意

UniversalTelemetryChannel is no longer supported. Please use the CollectorSessionChannel or AsimovAppInsightsSessionChannel instead.

表示一个通信通道,用于通过 UTC (Windows 通用遥测客户端) 将遥测数据发送到 Application Insights。

public ref class UniversalTelemetryChannel sealed : IDisposable, Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetryChannel
public sealed class UniversalTelemetryChannel : IDisposable, Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetryChannel
[System.Obsolete("UniversalTelemetryChannel is no longer supported. Please use the CollectorSessionChannel or AsimovAppInsightsSessionChannel instead.")]
public sealed class UniversalTelemetryChannel : IDisposable, Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetryChannel
type UniversalTelemetryChannel = class
    interface ITelemetryChannel
    interface IDisposable
[<System.Obsolete("UniversalTelemetryChannel is no longer supported. Please use the CollectorSessionChannel or AsimovAppInsightsSessionChannel instead.")>]
type UniversalTelemetryChannel = class
    interface ITelemetryChannel
    interface IDisposable
Public NotInheritable Class UniversalTelemetryChannel
Implements IDisposable, ITelemetryChannel
继承
UniversalTelemetryChannel
属性
实现

构造函数

UniversalTelemetryChannel()
已过时.

初始化 UniversalTelemetryChannel 类的新实例。

属性

DeveloperMode
已过时.

获取或设置一个值,该值指示是否启用了遥测传输的开发人员模式。 当开发人员模式为 True 时, UniversalTelemetryChannel 在应用程序的整个生命周期内立即将遥测数据发送到 Application Insights。 当开发人员模式为 False 时, UniversalTelemetryChannel 将遵循由其他属性定义的生产发送策略。

EndpointAddress
已过时.

获取或设置一个值,该值指示终结点地址。 此属性将被忽略。

方法

Dispose()
已过时.

释放非托管资源,并有选择性地释放托管资源。

Flush()
已过时.

No-op,因为每个方法都 Send(ITelemetry) 立即调用 UTC。 因此,每次调用都会立即“刷新”到 UTC 代理。

FlushAndTransmitAsync(CancellationToken)
已过时.

刷新内存中缓冲区并异步传输数据。

IsAvailable()
已过时.

如果通道可供使用,则返回 true。

Send(ITelemetry)
已过时.

通过通道发送 ITelemetry 实例。

适用于