SyringeScrutorExtensions
NexusLabs.Needlr.Injection.Scrutor¶
SyringeScrutorExtensions Class¶
Extension methods for configuring NexusLabs.Needlr.Injection.ConfiguredSyringe instances with Scrutor-specific functionality.
Inheritance System.Object 🡒 SyringeScrutorExtensions
Example¶
Reflection-based usage with Scrutor:
var serviceProvider = new Syringe()
.UsingReflection()
.UsingScrutorTypeRegistrar()
.BuildServiceProvider();
Remarks¶
Scrutor uses runtime reflection for assembly scanning. For AOT/trimming compatibility, use source-generated components instead.
Methods¶
SyringeScrutorExtensions.UsingScrutorTypeRegistrar(this ConfiguredSyringe) Method¶
Configures the syringe to use the Scrutor type registrar. This enables automatic service registration using the Scrutor library for assembly scanning.
public static NexusLabs.Needlr.Injection.ConfiguredSyringe UsingScrutorTypeRegistrar(this NexusLabs.Needlr.Injection.ConfiguredSyringe syringe);
Parameters¶
syringe NexusLabs.Needlr.Injection.ConfiguredSyringe
The configured syringe to update.
Returns¶
NexusLabs.Needlr.Injection.ConfiguredSyringe
A new configured syringe instance.