Click or drag to resize

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
Syntax
protected virtual void RegisterComponentMetadata<TReflectionActivatorData, TSingleRegistrationStyle>(
	IConfiguration component,
	IRegistrationBuilder<Object, TReflectionActivatorData, TSingleRegistrationStyle> registrar,
	Assembly defaultAssembly
)
where TReflectionActivatorData : ReflectionActivatorData
where TSingleRegistrationStyle : SingleRegistrationStyle

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
ExceptionCondition
ArgumentNullException Thrown if component or registrar is .
See Also