Skip to content
Miguel Bernard edited this page Jun 21, 2021 · 3 revisions

CloudEventBuilder implements a builder pattern that allows gathering all the necessary information to build the cloud event at different times and then build the CloudEvent once ready. The CloudEventBuilder also provides a default for all properties (except for Data), which enables a simple construction by convention or with a global configuration.

Usage

var ce = new CloudEventBuilder<UserCreated>(userCreated)
             .Build();

Clone this wiki locally