Click or drag to resize

RegistrationBuilderCreateRegistration Method (Guid, RegistrationData, IInstanceActivator, IResolvePipelineBuilder, Service, IComponentRegistration)

Create an IComponentRegistration from data.

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static IComponentRegistration CreateRegistration(
	Guid id,
	RegistrationData data,
	IInstanceActivator activator,
	IResolvePipelineBuilder pipelineBuilder,
	Service[] services,
	IComponentRegistration target
)

Parameters

id
Type: SystemGuid
Id of the registration.
data
Type: Autofac.BuilderRegistrationData
Registration data.
activator
Type: Autofac.CoreIInstanceActivator
Activator.
pipelineBuilder
Type: Autofac.Core.Resolving.PipelineIResolvePipelineBuilder
The component registration's resolve pipeline builder.
services
Type: Autofac.CoreService
Services provided by the registration.
target
Type: Autofac.CoreIComponentRegistration
Optional; target registration.

Return Value

Type: IComponentRegistration
An IComponentRegistration.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if activator or data is .
See Also