<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Channel.Transmission

public class Transmission
Implements an asynchronous transmission of data to an HTTP POST endpoint.
public byte[] Content { get; }

Gets the content of the transmission.

public string ContentEncoding { get; }

Gets the encoding method of the transmission.

public string ContentType { get; }

Gets the content's type of the transmission.

public Uri EndpointAddress { get; }

Gets the Address of the endpoint to which transmission will be sent.

public string Id { get; }

Gets an id of the transmission.

Gets the number of telemetry items in the transmission.

public TimeSpan Timeout { get; }

Gets a timeout value for the transmission.

Gets or Sets an event notification to track ingestion endpoint response.

public Transmission(Uri address, byte[] content, string contentType, string contentEncoding, TimeSpan timeout = default)

Initializes a new instance of the Transmission class.

public Transmission(Uri address, ICollection<ITelemetry> telemetryItems, TimeSpan timeout = default)

Initializes a new instance of the Transmission class.

protected virtual WebRequest CreateRequest(Uri address)

Creates a post web request.

protected virtual HttpRequestMessage CreateRequestMessage(Uri address, Stream contentStream)

Creates an http request for sending a transmission.

Executes the request that the current transmission represents.

public virtual Tuple<Transmission, Transmission> Split(Func<int, int> calculateLength)

Splits the Transmission object into two pieces using a method to determine the length of the first piece based off of the length of the transmission.