IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleInstancePerLifetimeScope Method |
Configure the component so that every dependent component or call to Resolve()
within a single ILifetimeScope gets the same, shared instance. Dependent components in
different lifetime scopes will get different instances.
Namespace:
Autofac.Builder
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> InstancePerLifetimeScope()
Function InstancePerLifetimeScope As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle)
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TRegistrationStyleA registration builder allowing further configuration of the component.
See Also