Class ApiEventPayloads
The gateway's own event payloads as their messages (openspec pubsub-topics, Platform Event
Payloads; api_events.proto): a CloudEvent carrying a message with its content type and
dataschema, and the schemas the gateway registers in its own registry at start, so every
client decodes the events like any registered payload.
public static class ApiEventPayloads
- Inheritance
-
ApiEventPayloads
- Inherited Members
Fields
All
The content types and messages of every event the gateway publishes.
public static readonly IReadOnlyList<(string ContentType, string EntityEvent, MessageDescriptor Message)> All
Field Value
- IReadOnlyList<(string ContentType, string EntityEvent, MessageDescriptor Message)>
Methods
CloudEvent(string, string, IMessage, string, string)
A CloudEvent of type carrying message under contentType.
public static CloudEvent CloudEvent(string type, string source, IMessage message, string contentType, string entityEvent)
Parameters
Returns
- CloudEvent
Schema(string, MessageDescriptor)
The registry entry of a message: a FileDescriptorSet of its file and every file it imports, dependencies first.
public static PayloadSchema Schema(string contentType, MessageDescriptor message)
Parameters
contentTypestringmessageMessageDescriptor
Returns
- PayloadSchema