Click or drag to resize

RegistrationExtensions Class

Provides registration methods for setting up pooled instances.
Inheritance Hierarchy
SystemObject
  Autofac.PoolingRegistrationExtensions

Namespace:  Autofac.Pooling
Assembly:  Autofac.Pooling (in Autofac.Pooling.dll) Version: 1.0.1+e2b1e849d21d04643649a531a7435392bb1a29cd
Syntax
public static class RegistrationExtensions
Methods
  NameDescription
Public methodStatic memberPooledInstancePerLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle)
Configure the component so that every dependent component or manual resolve within a single ILifetimeScope will return 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.
Public methodStatic memberPooledInstancePerLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle, IPooledRegistrationPolicyTLimit)
Configure the component so that every dependent component or manual resolve within a single ILifetimeScope will return 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.
Public methodStatic memberPooledInstancePerLifetimeScopeTLimit, TActivatorData, TSingleRegistrationStyle(IRegistrationBuilderTLimit, TActivatorData, TSingleRegistrationStyle, Int32)
Configure the component so that every dependent component or manual resolve within a single ILifetimeScope will return 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.
Public methodStatic memberPooledInstancePerMatchingLifetimeScopeTLimit, 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.
Public methodStatic memberPooledInstancePerMatchingLifetimeScopeTLimit, 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.
Public methodStatic memberPooledInstancePerMatchingLifetimeScopeTLimit, 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.
Top
See Also