Click or drag to resize

ContainerBuilderExtensionsRegisterAggregateServiceTInterface Method (ContainerBuilder)

Register TInterface 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<TInterface>(
	this ContainerBuilder builder
)
where TInterface : class

Parameters

builder
Type: AutofacContainerBuilder
The container builder.

Type Parameters

TInterface
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 TInterface is null.
ArgumentExceptionIf TInterface is not an interface.
See Also