Definition
Package: MessageHandler.EventSourcing.CloudEvents
Assembly: MessageHandler.EventSourcing.CloudEvents
Namespace: MessageHandler.EventSourcing.CloudEvents
Class: CloudEvents
EncodeAsCloudEvent(this SourcedEvent, ContentType, string, string, string)
Encode a sourced event as cloud event
Parameters
e: MessageHandler.EventSourcing.Contracts.SourcedEvent
The sourced event
contentType: System.Net.Mime.ContentType&
The content type
source: System.String
The source value
prefix: System.String
A prefix for custom properties
domain: System.String
The domain for the type
Returns
System.ReadOnlyMemory<System.Byte>