Microsoft.Bot.Builder.Autofac.Base.Extensions Class Reference

Static Public Member Functions

static IRegistrationBuilder< TLimit, SimpleActivatorData, SingleRegistrationStyle > RegisterAdapterChain< TLimit > (this ContainerBuilder builder, params Type[] types)
 Register an adapter chain of components, exposing a shared service interface. More...
 
static IRegistrationBuilder< TImplementer, ConcreteReflectionActivatorData, SingleRegistrationStyle > RegisterKeyedType< TImplementer, TLimit > (this ContainerBuilder builder)
 Register a component to be created through reflection, and provide a key that can be used to retrieve the component. More...
 

Detailed Description

Definition at line 40 of file Autofac/Base/Extensions.cs.

Member Function Documentation

static IRegistrationBuilder<TLimit, SimpleActivatorData, SingleRegistrationStyle> Microsoft.Bot.Builder.Autofac.Base.Extensions.RegisterAdapterChain< TLimit > ( this ContainerBuilder  builder,
params Type[]  types 
)
inlinestatic

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

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

Template Parameters
TLimitThe service type provided by the component.
Parameters
builderContainer builder.
typesThe services type keys that can be used to retrieve the components in the chain.
Returns
Registration builder allowing the registration to be configured.

Definition at line 80 of file Autofac/Base/Extensions.cs.

static IRegistrationBuilder<TImplementer, ConcreteReflectionActivatorData, SingleRegistrationStyle> Microsoft.Bot.Builder.Autofac.Base.Extensions.RegisterKeyedType< TImplementer, TLimit > ( this ContainerBuilder  builder)
inlinestatic

Register a component to be created through reflection, and provide a key that can be used to retrieve the component.

This method leverages Autofac's autowiring of components through reflection, providing a key that directly reflects that component type, so that it might be retrieved by that key and possibly replaced in an adapter chain.

Template Parameters
TImplementerThe type of the component implementation.
TLimitThe service type provided by the component.
Parameters
builderContainer builder.
Returns
Registration builder allowing the registration to be configured.

Definition at line 57 of file Autofac/Base/Extensions.cs.


The documentation for this class was generated from the following file: