Skip to content

Configuration

Miguel Bernard edited this page Jun 21, 2021 · 1 revision

CloudEventConfiguration provides default implementations and configurations for value providers that are used by default by other parts of the library. e.g. CloudEventBuilder

Value providers

There are three value providers available

  • Id
  • Source
  • Type

Each provider is responsible for providing a value for the specified property.

Get a value provider

CloudEventConfiguration.IdProvider.GetId();

Set a custom value provider

CloudEventConfiguration.IdProvider = new MyIdProvider();

Resolver

TypeResolver is responsible to dynamically resolve a CLR type from the type property of the cloud event. A type resolve must implement the ITypeResolver interface.

Clone this wiki locally