Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var cloudEvent = new CloudEvent<Band>
{
EventId = Guid.NewGuid().ToString(),
EventType = "newBand",
EventTypeVersion = "1.0",
CloudEventVersion = "0.1",
Data = GetBand(),
Source = $"{Topic}#subjectband",
EventTime = DateTime.UtcNow.ToString(CultureInfo.InvariantCulture),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment