Class ZipMessageSerializer
Zip as a data format: Marshal("application/zip") packs the body into a single-entry archive
(entry name from the constructor, default body); Unmarshal reads the first entry.
public sealed class ZipMessageSerializer : BinaryWrapperSerializer, IMessageSerializer
Inheritance
Implements
Inherited Members
BinaryWrapperSerializer.ContentType,BinaryWrapperSerializer.Decode(byte[]),BinaryWrapperSerializer.Deserialize(byte[], Type),BinaryWrapperSerializer.Deserialize<T>(byte[]),BinaryWrapperSerializer.Encode(byte[]),BinaryWrapperSerializer.FormatName,BinaryWrapperSerializer.MediaTypes,BinaryWrapperSerializer.ReadBounded(Stream, long, string),BinaryWrapperSerializer.Serialize<T>(T),BinaryWrapperSerializer.WrapsBytes
Properties
ContentType
Content type this serializer handles (e.g., "application/json").
public override string ContentType { get; }
MediaTypes
All media types this serializer can handle, including structured-suffix aliases
public override IReadOnlyCollection<string> MediaTypes { get; }
Methods
Encode(byte[])
Wraps the payload (encode / compress).
protected override byte[] Encode(byte[] payload)
Constructors
ZipMessageSerializer(string, CompressionLevel, long)
Creates the format.