Skip to content

Class GeneratorOptions ​

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

csharp
public record GeneratorOptions : IEquatable<GeneratorOptions>

Inheritance ​

object ← GeneratorOptions

Implements ​

IEquatable<GeneratorOptions>

Inherited Members ​

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

Constructors ​

GeneratorOptions(GeneratorOptions) ​

csharp
[SetsRequiredMembers]
protected GeneratorOptions(GeneratorOptions original)

Parameters ​

original GeneratorOptions

GeneratorOptions() ​

csharp
public GeneratorOptions()

Properties ​

AssemblyPaths ​

csharp
public List<string> AssemblyPaths { get; init; }

Property Value ​

List<string>

EmitPublicVisibility ​

Whether public events should render an explicit "public" visibility segment in

. Default: false (public events omit the

segment entirely, e.g. domain.subdomain.topic.v1). Internal events always render "internal" regardless of this flag, e.g. internal.domain.subdomain.topic.v1.

csharp
public bool EmitPublicVisibility { get; init; }

Property Value ​

bool

EqualityContract ​

csharp
protected virtual Type EqualityContract { get; }

Property Value ​

Type

EventAttributeName ​

Name (or name prefix) of the attribute used to discover events. Default: "EventTopicAttribute".

csharp
public string EventAttributeName { get; init; }

Property Value ​

string

GitHubBaseUrl ​

csharp
public string? GitHubBaseUrl { get; init; }

Property Value ​

string?

OutputDirectory ​

csharp
public required string OutputDirectory { get; init; }

Property Value ​

string

PartitionKeyAttributeName ​

Name (or name prefix) of the attribute used to discover partition keys. Default: "PartitionKeyAttribute".

csharp
public string PartitionKeyAttributeName { get; init; }

Property Value ​

string

SerializationFormat ​

Serialization format for overhead calculation. Default: "json". Options: "json", "binary".

csharp
public string SerializationFormat { get; init; }

Property Value ​

string

SidebarFileName ​

csharp
public required string SidebarFileName { get; init; }

Property Value ​

string

SourceRootDirectory ​

Optional path to the source checkout root (the parent of each project's folder, e.g. the parent of src/AppDomain/). When set, an event's GitHub source link is only emitted if the guessed file actually exists under this root — otherwise it falls back to "#" rather than risk a confidently wrong link (e.g. a type declared in a file whose name doesn't match the type's own name). When unset, the link is always emitted best-effort, unverified.

csharp
public string? SourceRootDirectory { get; init; }

Property Value ​

string?

TemplatesDirectory ​

csharp
public string? TemplatesDirectory { get; init; }

Property Value ​

string?

XmlDocumentationPaths ​

csharp
public List<string> XmlDocumentationPaths { get; init; }

Property Value ​

List<string>

Methods ​

<Clone>$() ​

csharp
public virtual GeneratorOptions <Clone>$()

Returns ​

GeneratorOptions

EnsureOutputDirectoryExists() ​

csharp
public void EnsureOutputDirectoryExists()

Equals(object?) ​

csharp
public override bool Equals(object? obj)

Parameters ​

obj object?

Returns ​

bool

Equals(GeneratorOptions?) ​

csharp
public virtual bool Equals(GeneratorOptions? other)

Parameters ​

other GeneratorOptions?

Returns ​

bool

GetHashCode() ​

csharp
public override int GetHashCode()

Returns ​

int

GetSidebarPath() ​

csharp
public string GetSidebarPath()

Returns ​

string

PrintMembers(StringBuilder) ​

csharp
protected virtual bool PrintMembers(StringBuilder builder)

Parameters ​

builder StringBuilder

Returns ​

bool

ToString() ​

csharp
public override string ToString()

Returns ​

string

Operators ​

operator ==(GeneratorOptions?, GeneratorOptions?) ​

csharp
public static bool operator ==(GeneratorOptions? left, GeneratorOptions? right)

Parameters ​

left GeneratorOptions?

right GeneratorOptions?

Returns ​

bool

operator !=(GeneratorOptions?, GeneratorOptions?) ​

csharp
public static bool operator !=(GeneratorOptions? left, GeneratorOptions? right)

Parameters ​

left GeneratorOptions?

right GeneratorOptions?

Returns ​

bool