Table of Contents

Class SerializedPayloadContext

Namespace
Azure.Iot.Operations.Protocol
Assembly
Azure.Iot.Operations.Protocol.dll

A bundle of the payload that was serialized alongside the content type and payload format indicator used.

public class SerializedPayloadContext
Inheritance
SerializedPayloadContext
Inherited Members

Constructors

SerializedPayloadContext(ReadOnlySequence<byte>, string?, MqttPayloadFormatIndicator)

A bundle of the payload that was serialized alongside the content type and payload format indicator used.

public SerializedPayloadContext(ReadOnlySequence<byte> serializedPayload, string? contentType, MqttPayloadFormatIndicator payloadFormatIndicator)

Parameters

serializedPayload ReadOnlySequence<byte>

The serialized payload. May be empty if no payload was serialized.

contentType string

The content type of the serialized payload. May be null if no payload was serialized.

payloadFormatIndicator MqttPayloadFormatIndicator

The payload format indicator of the serialized payload. Should be "Unspecified" if no payload was serialized.

Properties

ContentType

The content type of the serialized payload. May be null if no payload was serialized.

public string? ContentType { get; set; }

Property Value

string

PayloadFormatIndicator

The payload format indicator of the serialized payload. Should be "Unspecified" if no payload was serialized.

public MqttPayloadFormatIndicator PayloadFormatIndicator { get; set; }

Property Value

MqttPayloadFormatIndicator

SerializedPayload

The serialized payload. May be null if no payload was serialized.

public ReadOnlySequence<byte> SerializedPayload { get; set; }

Property Value

ReadOnlySequence<byte>