ComponentRegistrarRegisterComponentMetadataTReflectionActivatorData, TSingleRegistrationStyle Method |
Reads configuration data for a component's metadata
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 RegisterComponentMetadata<TReflectionActivatorData, TSingleRegistrationStyle>(
IConfiguration component,
IRegistrationBuilder<Object, TReflectionActivatorData, TSingleRegistrationStyle> registrar,
Assembly defaultAssembly
)
where TReflectionActivatorData : ReflectionActivatorData
where TSingleRegistrationStyle : SingleRegistrationStyle
Protected Overridable Sub RegisterComponentMetadata(Of TReflectionActivatorData As ReflectionActivatorData, TSingleRegistrationStyle As SingleRegistrationStyle) (
component As IConfiguration,
registrar As IRegistrationBuilder(Of Object, TReflectionActivatorData, TSingleRegistrationStyle),
defaultAssembly As Assembly
)
Parameters
- component
- Type: IConfiguration
The configuration data containing the component. The metadata
content will be read from this configuration object and used
as the metadata values.
- registrar
- Type: Autofac.BuilderIRegistrationBuilderObject, TReflectionActivatorData, TSingleRegistrationStyle
The component registration to update with metadata.
- defaultAssembly
- Type: System.ReflectionAssembly
The default assembly, if any, from which unqualified type names
should be resolved into types.
Type Parameters
- TReflectionActivatorData
- Activator data type.
- TSingleRegistrationStyle
- Registration style.
Exceptions
See Also