Microsoft.ApplicationInsights.Extensibility.Implementation.JsonSerializer
Serializes and compress the telemetry items into a JSON string. Compression will be done using GZIP, for Windows Phone 8 compression will be disabled because there
is API support for it.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation
{
public static class JsonSerializer
{
public static string CompressionType { get; }
public static string ContentType { get; }
public static byte[] Serialize(IEnumerable<ITelemetry> telemetryItems, bool compress = true);
public static byte[] ConvertToByteArray(string telemetryItems, bool compress = true);
public static string Deserialize(byte[] telemetryItemsData, bool compress = true);
}
}