Microsoft.ApplicationInsights.Channel.Transmission
Implements an asynchronous transmission of data to an HTTP POST endpoint.
namespace Microsoft.ApplicationInsights.Channel
{
public class Transmission
{
public EventHandler<TransmissionStatusEventArgs> TransmissionStatusEvent { get; set; }
public Uri EndpointAddress { get; }
public byte[] Content { get; }
public string ContentType { get; }
public string ContentEncoding { get; }
public TimeSpan Timeout { get; }
public string Id { get; }
public ICollection<ITelemetry> TelemetryItems { get; }
public Transmission(Uri address, byte[] content, string contentType, string contentEncoding, TimeSpan timeout = default(TimeSpan));
public Transmission(Uri address, ICollection<ITelemetry> telemetryItems, TimeSpan timeout = default(TimeSpan));
public virtual Task<HttpWebResponseWrapper> SendAsync();
public virtual Tuple<Transmission, Transmission> Split(Func<int, int> calculateLength);
protected virtual HttpRequestMessage CreateRequestMessage(Uri address, Stream contentStream);
protected virtual WebRequest CreateRequest(Uri address);
}
}