Skip to content

NexusLabs.Needlr.Injection

NexusLabs.Needlr.Injection

NexusLabs.Needlr.Injection Namespace

Classes
ConfiguredSyringe Represents a Syringe that has been configured with a strategy (UsingReflection, UsingSourceGen, or UsingAutoConfiguration). This type has access to all configuration extension methods and can build a service provider.
ITypeFiltererExtensionMethods Extension methods for ITypeFilterer providing fluent configuration of type lifetime rules.
ServiceCollectionPopulator Default implementation of IServiceCollectionPopulator that registers discovered types into a service collection. Handles type registration, plugin execution, and built-in service factory registration.
Syringe The base container for configuring Needlr service discovery.
SyringeExtensions Core extension methods for configuring ConfiguredSyringe instances.
TypeFiltering Provides helper methods for filtering types during dependency injection scanning.
Interfaces
IAssemblyLoader Defines a loader that loads assemblies for dependency injection scanning. Implement this interface to customize how assemblies are discovered and loaded.
IAssemblyProvider Defines a provider that supplies the list of candidate assemblies for dependency injection. Implement this interface to customize which assemblies are scanned for types.
IServiceCollectionPopulator Defines a populator that registers discovered types into a service collection. Handles type scanning, filtering, and registration with appropriate service lifetimes.
IServiceProviderBuilder Defines a builder for constructing service providers with Needlr's auto-discovery capabilities. Coordinates assembly loading, type registration, and plugin execution.
ITypeFilterer Defines a filterer that determines the service lifetime for discovered types. Implement this interface to customize how types are categorized as scoped, transient, or singleton.
ITypeRegistrar Provides functionality for registering types in a dependency injection container.
Enums
TypeFiltererLifetime Represents a service lifetime for type filtering purposes.