Azure.Messaging.CloudEvent
Represents a CloudEvent conforming to the 1.0 schema. This type has built-in serialization using System.Text.Json.
namespace Azure.Messaging
{
public class CloudEvent
{
public BinaryData Data { get; set; }
public string Id { get; set; }
public string Source { get; set; }
public string Type { get; set; }
public DateTimeOffset? Time { get; set; }
public string DataSchema { get; set; }
public string DataContentType { get; set; }
public string Subject { get; set; }
public IDictionary<string, object> ExtensionAttributes { get; }
public CloudEvent(string source, string type, object jsonSerializableData, Type dataSerializationType = null);
public CloudEvent(string source, string type, BinaryData data, string dataContentType, CloudEventDataFormat dataFormat = CloudEventDataFormat.Binary);
public static CloudEvent[] ParseMany(BinaryData json, bool skipValidation = false);
public static CloudEvent Parse(BinaryData json, bool skipValidation = false);
}
}