Skip to content

Class EventPropertyMetadataBuilder

Namespace: Momentum.Extensions.EventMarkdownGenerator.Services
Assembly: Momentum.Extensions.EventMarkdownGenerator.dll

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).

csharp
public static class EventPropertyMetadataBuilder

Inheritance

objectEventPropertyMetadataBuilder

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

Build(Type, XmlDocumentationParser?, PayloadSizeCalculator, string)

csharp
public static (List<EventPropertyMetadata> Properties, List<PartitionKeyMetadata> PartitionKeys) Build(Type eventType, XmlDocumentationParser? xmlParser, PayloadSizeCalculator calculator, string partitionKeyAttributeNamePrefix)

Parameters

eventType Type

xmlParser XmlDocumentationParser?

calculator PayloadSizeCalculator

partitionKeyAttributeNamePrefix string

Returns

(List<EventPropertyMetadata> Properties, List<PartitionKeyMetadata> PartitionKeys)