<PackageReference Include="Azure.Core" Version="1.44.0" />

CloudEventDataFormat

public enum CloudEventDataFormat
Specifies the format that the data of a CloudEvent should be sent in when using the JSON envelope format for a CloudEvent. .
Binary = 0

Indicates the Data should be serialized as binary data. This data will be included as a Base64 encoded string in the "data_base64" field of the JSON payload.

Json = 1

Indicates the Data should be serialized as JSON. The data will be included in the "data" field of the JSON payload.