A .NET Standard 2.1 library that extends the CloudEvents library
dotnet add package Neuroglia.CloudEvents
var builder = new CloudEventBuilder();
var e = builder.WithType("MyEventType")
.WithSubject("MySubject")
.WithSource(new Uri("/MySource", UriKind.RelativeOrAbsolute))
.WithData(JsonConvert.SerializeObject(new { Message = "Hello, World!" }), new ContentType(MediaTypeNames.Application.Json))
.Build();
Please see CONTRIBUTING.md for instructions on how to contribute.