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: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
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