Skip to content

ITypeRegistrar

NexusLabs.Needlr.Injection

NexusLabs.Needlr.Injection

ITypeRegistrar Interface

Provides functionality for registering types in a dependency injection container.

public interface ITypeRegistrar

Methods

ITypeRegistrar.RegisterTypesFromAssemblies(IServiceCollection, ITypeFilterer, IReadOnlyList<Assembly>) Method

Registers types from the specified assemblies into the service collection.

void RegisterTypesFromAssemblies(Microsoft.Extensions.DependencyInjection.IServiceCollection services, NexusLabs.Needlr.Injection.ITypeFilterer typeFilterer, System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly> assemblies);

Parameters

services Microsoft.Extensions.DependencyInjection.IServiceCollection

The service collection to register types into.

typeFilterer ITypeFilterer

The type filterer used to determine which types should be registered and their lifetimes.

assemblies System.Collections.Generic.IReadOnlyList<System.Reflection.Assembly>

The assemblies to scan for types to register.