Click or drag to resize

RegistrationExtensions Class

Adds registration syntax for less commonly-used features.
Inheritance Hierarchy
SystemObject
  Autofac.BuilderRegistrationExtensions

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
public static class RegistrationExtensions

The RegistrationExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberNamedParameterMappingTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle
Changes the parameter mapping mode of the supplied delegate type to match parameters by name.
Public methodStatic memberPositionalParameterMappingTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle
Changes the parameter mapping mode of the supplied delegate type to match parameters by position.
Public methodStatic memberRegisterGeneratedFactory(ContainerBuilder, Type)
Registers a factory delegate.
Public methodStatic memberRegisterGeneratedFactory(ContainerBuilder, Type, Service)
Registers a factory delegate.
Public methodStatic memberRegisterGeneratedFactoryTDelegate(ContainerBuilder)
Registers a factory delegate.
Public methodStatic memberRegisterGeneratedFactoryTDelegate(ContainerBuilder, Service)
Registers a factory delegate.
Public methodStatic memberTypedParameterMappingTDelegate, TGeneratedFactoryActivatorData, TSingleRegistrationStyle
Changes the parameter mapping mode of the supplied delegate type to match parameters by type.
Top
Remarks
These features are in this namespace because they will remain accessible to applications originally written against Autofac 1.4. In Autofac 2, this functionality is implicitly provided and thus making explicit registrations is rarely necessary.
See Also