Click or drag to resize

ContainerBuilderExtensionsRegisterAggregateService Method (ContainerBuilder, Type)

Register interfaceType as an aggregate service.

Namespace:  Autofac.Extras.AggregateService
Assembly:  Autofac.Extras.AggregateService (in Autofac.Extras.AggregateService.dll) Version: 6.0.0+9a0ae3a0a675c94a74f543addfa4c99a731e7032
Syntax
public static void RegisterAggregateService(
	this ContainerBuilder builder,
	Type interfaceType
)

Parameters

builder
Type: AutofacContainerBuilder
The container builder.
interfaceType
Type: SystemType
The interface type to register.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContainerBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionIf interfaceType is null.
ArgumentExceptionIf interfaceType is not an interface.
See Also