Skip to content

A .NET Standard 2.1 library that extends the CloudEvents library

License

Notifications You must be signed in to change notification settings

neuroglia-io/CloudEvents

Repository files navigation

Neuroglia CloudEvents

A .NET Standard 2.1 library that extends the CloudEvents library

Usage

Nuget Package

  dotnet add package Neuroglia.CloudEvents

Sample Code

Create a new CloudEvent

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();

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

About

A .NET Standard 2.1 library that extends the CloudEvents library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages