Skip to content

TypeRegistry

NexusLabs.Needlr.SignalR

NexusLabs.Needlr.SignalR.Generated

TypeRegistry Class

Compile-time generated registry of injectable types and plugins. This eliminates the need for runtime reflection-based type discovery.

public static class TypeRegistry

Inheritance System.Object 🡒 TypeRegistry

Methods

TypeRegistry.ApplyDecorators(IServiceCollection) Method

Applies all discovered decorators, interceptors, and hosted services to the service collection. Decorators are applied in order, with lower Order values applied first (closer to the original service).

public static void ApplyDecorators(Microsoft.Extensions.DependencyInjection.IServiceCollection services);

Parameters

services Microsoft.Extensions.DependencyInjection.IServiceCollection

The service collection to apply decorators to.

TypeRegistry.GetInjectableTypes() Method

Gets all injectable types discovered at compile time.

public static System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.Generators.InjectableTypeInfo> GetInjectableTypes();

Returns

System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.Generators.InjectableTypeInfo>
A read-only list of injectable type information.

TypeRegistry.GetPluginTypes() Method

Gets all plugin types discovered at compile time.

public static System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.Generators.PluginTypeInfo> GetPluginTypes();

Returns

System.Collections.Generic.IReadOnlyList<NexusLabs.Needlr.Generators.PluginTypeInfo>
A read-only list of plugin type information.