Skip to content

InterceptedServiceCatalogEntry

NexusLabs.Needlr

NexusLabs.Needlr.Catalog

InterceptedServiceCatalogEntry Class

Represents an intercepted service discovered at compile time.

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

Inheritance System.Object 🡒 InterceptedServiceCatalogEntry

Implements System.IEquatable<InterceptedServiceCatalogEntry>

Constructors

InterceptedServiceCatalogEntry(string, string, string, ServiceCatalogLifetime, IReadOnlyList<string>, IReadOnlyList<string>, string) Constructor

Represents an intercepted service discovered at compile time.

public InterceptedServiceCatalogEntry(string TypeName, string ShortTypeName, string AssemblyName, NexusLabs.Needlr.Catalog.ServiceCatalogLifetime Lifetime, System.Collections.Generic.IReadOnlyList<string> Interfaces, System.Collections.Generic.IReadOnlyList<string> InterceptorTypeNames, string? SourceFilePath=null);

Parameters

TypeName System.String

The fully qualified name of the intercepted service type.

ShortTypeName System.String

The short name of the intercepted service type (without namespace).

AssemblyName System.String

The assembly name where this type is defined.

Lifetime ServiceCatalogLifetime

The service lifetime (Singleton, Scoped, Transient).

Interfaces System.Collections.Generic.IReadOnlyList<System.String>

The interfaces this type is registered as.

InterceptorTypeNames System.Collections.Generic.IReadOnlyList<System.String>

The interceptor type names applied to this service, in order.

SourceFilePath System.String

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

Properties

InterceptedServiceCatalogEntry.AssemblyName Property

The assembly name where this type is defined.

public string AssemblyName { get; init; }

Property Value

System.String

InterceptedServiceCatalogEntry.InterceptorTypeNames Property

The interceptor type names applied to this service, in order.

public System.Collections.Generic.IReadOnlyList<string> InterceptorTypeNames { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>

InterceptedServiceCatalogEntry.Interfaces Property

The interfaces this type is registered as.

public System.Collections.Generic.IReadOnlyList<string> Interfaces { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>

InterceptedServiceCatalogEntry.Lifetime Property

The service lifetime (Singleton, Scoped, Transient).

public NexusLabs.Needlr.Catalog.ServiceCatalogLifetime Lifetime { get; init; }

Property Value

ServiceCatalogLifetime

InterceptedServiceCatalogEntry.ShortTypeName Property

The short name of the intercepted service type (without namespace).

public string ShortTypeName { get; init; }

Property Value

System.String

InterceptedServiceCatalogEntry.SourceFilePath Property

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

public string? SourceFilePath { get; init; }

Property Value

System.String

InterceptedServiceCatalogEntry.TypeName Property

The fully qualified name of the intercepted service type.

public string TypeName { get; init; }

Property Value

System.String