Table of Contents

Class ElasticsearchOutboxSerializer

Namespace
Excalibur.Outbox.ElasticSearch
Assembly
Excalibur.Outbox.ElasticSearch.dll

Creates the SDK source serializer with metadata for the framework's persisted outbox document.

public static class ElasticsearchOutboxSerializer
Inheritance
ElasticsearchOutboxSerializer
Inherited Members

Methods

Create(IElasticsearchClientSettings, IJsonTypeInfoResolver?)

Creates a source serializer without an implicit reflection fallback.

public static DefaultSourceSerializer Create(IElasticsearchClientSettings settings, IJsonTypeInfoResolver? additionalTypes = null)

Parameters

settings IElasticsearchClientSettings

The settings supplied by the SDK source-serializer factory.

additionalTypes IJsonTypeInfoResolver

Optional metadata for application header values and other shared-client documents.

Returns

DefaultSourceSerializer

The SDK serializer retaining its built-in converters and JSON defaults.

Remarks

Framework document metadata takes precedence. Supply generated metadata for custom header types in trimmed and NativeAOT applications. An explicitly supplied reflection resolver retains managed arbitrary-object support and carries that resolver's trimming and dynamic-code requirements. Missing metadata is an error; values are never dropped or converted to strings. Configure a borrowed client with this helper at its original construction: the store does not replace its source serializer or take ownership of its transport.