Skip to content

Instantly share code, notes, and snippets.

@dbarkol
Created May 6, 2018 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbarkol/50eff1f03618e3422ab13f1c5ea373fe to your computer and use it in GitHub Desktop.
Save dbarkol/50eff1f03618e3422ab13f1c5ea373fe to your computer and use it in GitHub Desktop.
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