Click or drag to resize

RegistrationBuilderRegisterSingleComponentTLimit, TActivatorData, TSingleRegistrationStyle Method

Register a component in the component registry. This helper method is necessary in order to execute OnRegistered hooks and respect PreserveDefaults.

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static void RegisterSingleComponent<TLimit, TActivatorData, TSingleRegistrationStyle>(
	IComponentRegistryBuilder cr,
	IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationStyle> builder
)
where TActivatorData : IConcreteActivatorData
where TSingleRegistrationStyle : SingleRegistrationStyle

Parameters

cr
Type: Autofac.Core.RegistrationIComponentRegistryBuilder
Component registry to make registration in.
builder
Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle
Registration builder with data for new registration.

Type Parameters

TLimit

[Missing <typeparam name="TLimit"/> documentation for "M:Autofac.Builder.RegistrationBuilder.RegisterSingleComponent``3(Autofac.Core.Registration.IComponentRegistryBuilder,Autofac.Builder.IRegistrationBuilder{``0,``1,``2})"]

TActivatorData

[Missing <typeparam name="TActivatorData"/> documentation for "M:Autofac.Builder.RegistrationBuilder.RegisterSingleComponent``3(Autofac.Core.Registration.IComponentRegistryBuilder,Autofac.Builder.IRegistrationBuilder{``0,``1,``2})"]

TSingleRegistrationStyle

[Missing <typeparam name="TSingleRegistrationStyle"/> documentation for "M:Autofac.Builder.RegistrationBuilder.RegisterSingleComponent``3(Autofac.Core.Registration.IComponentRegistryBuilder,Autofac.Builder.IRegistrationBuilder{``0,``1,``2})"]

Remarks
Hoping to refactor this out.
See Also