Click or drag to resize

IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleAsTService1, TService2 Method

Configure the services that the component will provide. The generic parameter(s) to As() will be exposed as TypedService instances.

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> As<TService1, TService2>()

Type Parameters

TService1
Service type.
TService2
Service type.

Return Value

Type: IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
A registration builder allowing further configuration of the component.
See Also