Azure.Messaging.CloudEventConverter
A custom converter that attributes the CloudEvent type.
This allows System.Text.Json to serialize and deserialize CloudEvents by default.
namespace Azure.Messaging
{
internal class CloudEventConverter : JsonConverter<CloudEvent>
{
public CloudEventConverter();
}
}
namespace Azure.Messaging
{
}
namespace Microsoft.CodeAnalysis
{
}
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 System.Collections.Generic.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);
}
}