Extensions.RegisterAdapterChain<TLimit> Method

Definition

Register an adapter chain of components, exposing a shared service interface.

public static Autofac.Builder.IRegistrationBuilder<TLimit,Autofac.Builder.SimpleActivatorData,Autofac.Builder.SingleRegistrationStyle> RegisterAdapterChain<TLimit> (this Autofac.ContainerBuilder builder, params Type[] types);
static member RegisterAdapterChain : Autofac.ContainerBuilder * Type[] -> Autofac.Builder.IRegistrationBuilder<'Limit, Autofac.Builder.SimpleActivatorData, Autofac.Builder.SingleRegistrationStyle>
<Extension()>
Public Function RegisterAdapterChain(Of TLimit) (builder As ContainerBuilder, ParamArray types As Type()) As IRegistrationBuilder(Of TLimit, SimpleActivatorData, SingleRegistrationStyle)

Type Parameters

TLimit

The service type provided by the component.

Parameters

builder
Autofac.ContainerBuilder

Container builder.

types
Type[]

The services type keys that can be used to retrieve the components in the chain.

Returns

Autofac.Builder.IRegistrationBuilder<TLimit,Autofac.Builder.SimpleActivatorData,Autofac.Builder.SingleRegistrationStyle>

Registration builder allowing the registration to be configured.

Remarks

This registers a factory method to create a adapter chain of components, based on wrapping each inner component with an adapter outer component.

Applies to