Skip to content

DecoratorCatalogEntry

NexusLabs.Needlr

NexusLabs.Needlr.Catalog

DecoratorCatalogEntry Class

Represents a decorator registration discovered at compile time.

public sealed record DecoratorCatalogEntry : System.IEquatable<NexusLabs.Needlr.Catalog.DecoratorCatalogEntry>

Inheritance System.Object 🡒 DecoratorCatalogEntry

Implements System.IEquatable<DecoratorCatalogEntry>

Constructors

DecoratorCatalogEntry(string, string, string, int, string, string) Constructor

Represents a decorator registration discovered at compile time.

public DecoratorCatalogEntry(string DecoratorTypeName, string ShortDecoratorTypeName, string ServiceTypeName, int Order, string AssemblyName, string? SourceFilePath=null);

Parameters

DecoratorTypeName System.String

The fully qualified name of the decorator type.

ShortDecoratorTypeName System.String

The short name of the decorator type (without namespace).

ServiceTypeName System.String

The fully qualified name of the service type being decorated.

Order System.Int32

The order in which this decorator is applied (lower = closer to original service).

AssemblyName System.String

The assembly name where this decorator is defined.

SourceFilePath System.String

Source file path where the decorator is defined, if available.

Properties

DecoratorCatalogEntry.AssemblyName Property

The assembly name where this decorator is defined.

public string AssemblyName { get; init; }

Property Value

System.String

DecoratorCatalogEntry.DecoratorTypeName Property

The fully qualified name of the decorator type.

public string DecoratorTypeName { get; init; }

Property Value

System.String

DecoratorCatalogEntry.Order Property

The order in which this decorator is applied (lower = closer to original service).

public int Order { get; init; }

Property Value

System.Int32

DecoratorCatalogEntry.ServiceTypeName Property

The fully qualified name of the service type being decorated.

public string ServiceTypeName { get; init; }

Property Value

System.String

DecoratorCatalogEntry.ShortDecoratorTypeName Property

The short name of the decorator type (without namespace).

public string ShortDecoratorTypeName { get; init; }

Property Value

System.String

DecoratorCatalogEntry.SourceFilePath Property

Source file path where the decorator is defined, if available.

public string? SourceFilePath { get; init; }

Property Value

System.String