Table of Contents

Class CloudEventSchemaOptions

Namespace
Excalibur.Dispatch.Options.CloudEvents
Assembly
Excalibur.Dispatch.dll

Configuration options for CloudEvent schema validation, registration, and transformation.

public sealed class CloudEventSchemaOptions
Inheritance
CloudEventSchemaOptions
Inherited Members
Extension Methods

Properties

AutoRegisterSchemas

Gets or sets a value indicating whether to automatically register message schemas.

public bool AutoRegisterSchemas { get; set; }

Property Value

bool

The current AutoRegisterSchemas value.

CustomValidator

Gets or sets the custom validator for CloudEvents.

public Func<CloudEvent, CancellationToken, Task<bool>>? CustomValidator { get; set; }

Property Value

Func<CloudEvent, CancellationToken, Task<bool>>

The current CustomValidator value.

IncludeSchemaVersion

Gets or sets a value indicating whether to include schema version in CloudEvents.

public bool IncludeSchemaVersion { get; set; }

Property Value

bool

The current IncludeSchemaVersion value.

OutgoingTransformer

Gets or sets the transformer for outgoing CloudEvents.

public Func<CloudEvent, IDispatchEvent, IMessageContext, CancellationToken, Task>? OutgoingTransformer { get; set; }

Property Value

Func<CloudEvent, IDispatchEvent, IMessageContext, CancellationToken, Task>

The current OutgoingTransformer value.

SchemaProvider

Gets or sets the schema provider function for auto-registration.

public Func<Type, string>? SchemaProvider { get; set; }

Property Value

Func<Type, string>

The current SchemaProvider value.

SchemaVersionProvider

Gets or sets the schema version provider function.

public Func<Type, string>? SchemaVersionProvider { get; set; }

Property Value

Func<Type, string>

The current SchemaVersionProvider value.

ValidateSchema

Gets or sets a value indicating whether to validate CloudEvent schema.

public bool ValidateSchema { get; set; }

Property Value

bool

The current ValidateSchema value.