Table of Contents

Class EmailChunkIdJsonConverter

Namespace
MailFathom.Application.Discovery.Presentation.Citations
Assembly
MailFathom.Application.dll

Serializes EmailChunkId as the bare UUID one persisted passage is stored under.

public sealed class EmailChunkIdJsonConverter : JsonConverter<EmailChunkId>
Inheritance
EmailChunkIdJsonConverter
Inherited Members

Remarks

Declared beside the citation contract rather than on the identity, for the reason StoredEmailIdJsonConverter gives: which boundaries publish a passage identifier is not something a chunking type should decide on their behalf.

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type EmailChunkId.

Write(Utf8JsonWriter, EmailChunkId, JsonSerializerOptions)

Writes a specified value as JSON.