Class Transmission
- Namespace
- Microsoft.ApplicationInsights.Channel
- Assembly
- Microsoft.ApplicationInsights.dll
public class Transmission
- Inheritance
-
Transmission
- Inherited Members
-
- Extension Methods
-
Constructors
Transmission()
Transmission(Uri, byte[], string, string, TimeSpan)
public Transmission(Uri address, byte[] content, string contentType, string contentEncoding, TimeSpan timeout = default)
Parameters
address
Uri
content
byte[]
contentType
string
contentEncoding
string
timeout
TimeSpan
Transmission(Uri, ICollection<ITelemetry>, TimeSpan)
public Transmission(Uri address, ICollection<ITelemetry> telemetryItems, TimeSpan timeout = default)
Parameters
address
Uri
telemetryItems
ICollection<ITelemetry>
timeout
TimeSpan
Properties
Content
public byte[] Content { get; }
Property Value
- byte[]
ContentEncoding
public string ContentEncoding { get; }
Property Value
- string
ContentType
public string ContentType { get; }
Property Value
- string
EndpointAddress
public Uri EndpointAddress { get; }
Property Value
- Uri
Id
public string Id { get; }
Property Value
- string
TelemetryItems
public ICollection<ITelemetry> TelemetryItems { get; }
Property Value
- ICollection<ITelemetry>
Timeout
public TimeSpan Timeout { get; }
Property Value
- TimeSpan
TransmissionStatusEvent
public EventHandler<TransmissionStatusEventArgs> TransmissionStatusEvent { get; set; }
Property Value
- EventHandler<TransmissionStatusEventArgs>
Methods
CreateRequest(Uri)
[Obsolete("Use CreateRequestMessage instead as SendAsync is now using HttpClient to send HttpRequest.")]
protected virtual WebRequest CreateRequest(Uri address)
Parameters
address
Uri
Returns
- WebRequest
CreateRequestMessage(Uri, Stream)
protected virtual HttpRequestMessage CreateRequestMessage(Uri address, Stream contentStream)
Parameters
address
Uri
contentStream
Stream
Returns
- HttpRequestMessage
SendAsync()
public virtual Task<HttpWebResponseWrapper> SendAsync()
Returns
- Task<HttpWebResponseWrapper>
Split(Func<int, int>)
public virtual Tuple<Transmission, Transmission> Split(Func<int, int> calculateLength)
Parameters
calculateLength
Func<int, int>
Returns
- Tuple<Transmission, Transmission>