Skip to content

Namespace Momentum.Extensions.EventMarkdownGenerator.Services

Classes

AssemblyEventDiscovery

EventMetadataBuilder

Builds for a single discovered event type. Separated from

so assembly/type scanning stays independent of the

(considerably larger) job of reflecting an event type and its topic attribute into metadata. Generic reflection helpers with no metadata-specific meaning live in .

EventPropertyMetadataBuilder

Builds an event type's and lists. Separated from so reflecting an event type's own properties stays independent from resolving its topic attribute and computed fields (topic, domain, fully-qualified topic name, etc).

EventViewModelFactory

Factory for creating view models used in Liquid template rendering. Extracts complex object creation logic from FluidMarkdownGenerator.

FluidMarkdownGenerator

Generates markdown documentation from event metadata using Fluid (Liquid) templates. Supports custom template directories and generates both event and schema documentation.

JsonSidebarGenerator

Generates JSON sidebar navigation structure for documentation sites. Groups events by subdomain and section, with separate schemas section.

PayloadSizeCalculator

Calculates estimated payload sizes for event properties based on type analysis and data annotation constraints (MaxLength, Range, StringLength). Subclass to define serialization-format-specific overhead (JSON, Binary, etc.).

TypeUtils

Shared utility methods for type checking and name formatting. Consolidates type-related logic from multiple service classes.

XmlDocumentationParser