Skip to content

FactoryGenerationMode

NexusLabs.Needlr.Generators

FactoryGenerationMode Enum

Controls what factory artifacts are generated for types marked with GenerateFactoryAttribute.

public enum FactoryGenerationMode

Fields

Func 1

Generate Func\<TRuntime..., TService> registrations.

Interface 2

Generate I{TypeName}Factory interface and implementation.

All 3

Generate both Func and Interface (default).