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
<ExtensionAttribute>
Public Shared Sub RegisterAggregateService(Of TInterface As Class) (
builder As ContainerBuilder
)
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 See Also