ComponentRegistrarRegisterComponentPropertiesTReflectionActivatorData, TSingleRegistrationStyle Method |
Reads configuration data for a component's configured property values
and updates the component registration as needed.
Namespace:
Autofac.Configuration.Core
Assembly:
Autofac.Configuration (in Autofac.Configuration.dll) Version: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
Syntaxprotected virtual void RegisterComponentProperties<TReflectionActivatorData, TSingleRegistrationStyle>(
IConfiguration component,
IRegistrationBuilder<Object, TReflectionActivatorData, TSingleRegistrationStyle> registrar
)
where TReflectionActivatorData : ReflectionActivatorData
where TSingleRegistrationStyle : SingleRegistrationStyle
Protected Overridable Sub RegisterComponentProperties(Of TReflectionActivatorData As ReflectionActivatorData, TSingleRegistrationStyle As SingleRegistrationStyle) (
component As IConfiguration,
registrar As IRegistrationBuilder(Of Object, TReflectionActivatorData, TSingleRegistrationStyle)
)
Parameters
- component
- Type: IConfiguration
The configuration data containing the component. The properties
content will be read from this configuration object and used
as the properties to inject.
- registrar
- Type: Autofac.BuilderIRegistrationBuilderObject, TReflectionActivatorData, TSingleRegistrationStyle
The component registration to update with property injection.
Type Parameters
- TReflectionActivatorData
- Activator data type.
- TSingleRegistrationStyle
- Registration style.
Exceptions
See Also