UniversalTelemetryChannel Class

Definition

Caution

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

Represents a communication channel for sending telemetry to Application Insights via UTC (Windows Universal Telemetry Client).

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
Inheritance
UniversalTelemetryChannel
Attributes
Implements

Constructors

UniversalTelemetryChannel()

Initializes a new instance of the UniversalTelemetryChannel class.

Properties

DeveloperMode

Gets or sets a value indicating whether developer mode of telemetry transmission is enabled. When developer mode is True, UniversalTelemetryChannel sends telemetry to Application Insights immediately during the entire lifetime of the application. When developer mode is False, UniversalTelemetryChannel respects production sending policies defined by other properties.

EndpointAddress

Gets or sets a value indicating the endpoint address. This property is ignored.

Methods

Dispose()

Releases unmanaged and - optionally - managed resources.

Flush()

No-op because every Send(ITelemetry) method is immediately calling UTC. So every call is immediately "flushed" to the UTC agent.

FlushAndTransmitAsync(CancellationToken)

Flushes the in-memory buffer and transmit data asynchronously.

IsAvailable()

Returns true if the channel is available to use.

Send(ITelemetry)

Sends an instance of ITelemetry through the channel.

Applies to