RegistrationExtensionsPooledInstancePerMatchingLifetimeScope Method |
Name | Description | |
---|---|---|
PooledInstancePerMatchingLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle, Object) |
Configure the component so that every dependent component or manual resolve within
a ILifetimeScope tagged with any of the provided tags value gets the same, shared instance,
retrieved from a single pool of instances shared by all lifetime scopes.
When the scope ends, the instance will be returned to the pool.
Dependent components in lifetime scopes that are children of the tagged scope will
share the parent's instance. If no appropriately tagged scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
PooledInstancePerMatchingLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle, IPooledRegistrationPolicyTLimit, Object) |
Configure the component so that every dependent component or manual resolve within
a ILifetimeScope tagged with any of the provided tags value gets the same, shared instance,
retrieved from a single pool of instances shared by all lifetime scopes.
When the scope ends, the instance will be returned to the pool.
Dependent components in lifetime scopes that are children of the tagged scope will
share the parent's instance. If no appropriately tagged scope can be found in the
hierarchy an DependencyResolutionException is thrown.
| |
PooledInstancePerMatchingLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle, Int32, Object) |
Configure the component so that every dependent component or manual resolve within
a ILifetimeScope tagged with any of the provided tags value gets the same, shared instance,
retrieved from a single pool of instances shared by all lifetime scopes.
When the scope ends, the instance will be returned to the pool.
Dependent components in lifetime scopes that are children of the tagged scope will
share the parent's instance. If no appropriately tagged scope can be found in the
hierarchy an DependencyResolutionException is thrown.
|