Share via


InMemoryChannel Class

Definition

Represents a communication channel for sending telemetry to Application Insights via HTTPS. There will be a buffer that will not be persisted, to enforce the queued telemetry items to be sent, Flush() should be caller.

public ref class InMemoryChannel : IDisposable, Microsoft::VisualStudio::ApplicationInsights::Channel::ITelemetryChannel
public class InMemoryChannel : IDisposable, Microsoft.VisualStudio.ApplicationInsights.Channel.ITelemetryChannel
type InMemoryChannel = class
    interface ITelemetryChannel
    interface IDisposable
Public Class InMemoryChannel
Implements IDisposable, ITelemetryChannel
Inheritance
InMemoryChannel
Implements

Constructors

InMemoryChannel()

Initializes a new instance of the InMemoryChannel class.

Properties

DataUploadIntervalInSeconds
Obsolete.

Gets or sets the maximum telemetry batching interval. Once the interval expires, InMemoryChannel serializes the accumulated telemetry items for transmission.

DeveloperMode

Gets or sets a value indicating whether developer mode of telemetry transmission is enabled.

EndpointAddress

Gets or sets the HTTP address where the telemetry is sent.

MaxTelemetryBufferCapacity

Gets or sets the maximum number of telemetry items will accumulate in a memory before the InMemoryChannel serializing them for transmission to Application Insights.

SendingInterval

Gets or sets the sending interval. Once the interval expires, InMemoryChannel serializes the accumulated telemetry items for transmission and sends it over the wire.

Methods

Dispose()

Disposing the channel.

Dispose(Boolean)

Disposes managed and unmanaged resources held by this object.

Flush()

Will send all the telemetry items stored in the memory.

FlushAndTransmitAsync(CancellationToken)

Flushes the in-memory buffer and transmit data asynchronously.

Send(ITelemetry)

Sends an instance of ITelemetry through the channel.

Applies to