Table of Contents

Class DiscoveryRunEventJsonContext

Namespace
MailFathom.Application.Discovery.Streaming
Assembly
MailFathom.Application.dll

The one shape a run's event is written into its journal row as, with the readers and writers generated at compile time.

[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, UseStringEnumConverter = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = new Type[] { typeof(StoredEmailIdJsonConverter), typeof(EmailChunkIdJsonConverter), typeof(EmailAddressJsonConverter) })]
[JsonSerializable(typeof(DiscoveryRunEvent))]
public sealed class DiscoveryRunEventJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
DiscoveryRunEventJsonContext
Implements
Inherited Members

Remarks

A run's events are rows now rather than objects in one process, so the payload column is a stored form that outlives the process that wrote it — and a rolling upgrade has one build writing it while another reads it. That makes it a contract rather than an implementation detail, which is why it is declared here instead of being left to whatever options the store happened to have: a property renamed on one side and not the other would be a block that reads back empty rather than a compilation failure.

Source-generated for the reason PresentationPlanJsonContext is, in the same mode and with the same three converters, so a block or a citation is written here exactly as it is written there. The mode is metadata because the block catalogue, the citation targets, and the events themselves are all polymorphic and the fast path carries no discriminator.

It is not what a client is handed. The endpoint serializes the events it read with the surface's own options, so this shape is between the run and its rows and changing it changes no wire form.

Constructors

DiscoveryRunEventJsonContext()
DiscoveryRunEventJsonContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

Properties

AccountCoverage

Defines the source generated JSON serialization contract metadata for a given type.

AnswerBlock

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentAvailability

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentGalleryBlock

Defines the source generated JSON serialization contract metadata for a given type.

Boolean

Defines the source generated JSON serialization contract metadata for a given type.

ConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

DateOnly

Defines the source generated JSON serialization contract metadata for a given type.

DateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

DiscoveryBlockComposed

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryCitationDeclared

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRetrievalProgress

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRetrievalProgressed

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunCompleted

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunEvent

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunFailed

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunFailure

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunId

Defines the source generated JSON serialization contract metadata for a given type.

DiscoveryRunStarted

Defines the source generated JSON serialization contract metadata for a given type.

Double

Defines the source generated JSON serialization contract metadata for a given type.

DraftBlock

Defines the source generated JSON serialization contract metadata for a given type.

DraftDisposition

Defines the source generated JSON serialization contract metadata for a given type.

EmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

EmailChunkId

Defines the source generated JSON serialization contract metadata for a given type.

EmailCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

EventProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceListBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

FactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

FactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

FragmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

GeneratedSerializerOptions

The source-generated options associated with this context.

Guid

Defines the source generated JSON serialization contract metadata for a given type.

IEnumerablePresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListAccountCoverage

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListAttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationLimitation

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListTimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

Int32

Defines the source generated JSON serialization contract metadata for a given type.

Int64

Defines the source generated JSON serialization contract metadata for a given type.

MailAnsweringRunBounds

Defines the source generated JSON serialization contract metadata for a given type.

MailAnsweringRunSpend

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateOnly

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

NullableEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

NullablePresentationText

Defines the source generated JSON serialization contract metadata for a given type.

NullableUnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

PeopleBlock

Defines the source generated JSON serialization contract metadata for a given type.

PersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

PresentationBlock

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitation

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

PresentationConfidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationEvidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationFreshness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationLimitation

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSourceMedium

Defines the source generated JSON serialization contract metadata for a given type.

PresentationStaleness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSupport

Defines the source generated JSON serialization contract metadata for a given type.

PresentationText

Defines the source generated JSON serialization contract metadata for a given type.

StoredEmailId

Defines the source generated JSON serialization contract metadata for a given type.

String

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionBlock

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionImpact

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionKind

Defines the source generated JSON serialization contract metadata for a given type.

TaskProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

ThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStateBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

TimelineBlock

Defines the source generated JSON serialization contract metadata for a given type.

TimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

UnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

Methods

GetTypeInfo(Type)

Gets metadata for the specified type.