ScopedLifetimeBase
Represents a shared base class for scoped lifetimes.
The id of the scope.
The object used to synchronization.
protected ScopedLifetimeBase()
public Expression GetFactoryExpression(IContainerContext containerContext, IServiceRegistration serviceRegistration, IObjectBuilder objectBuilder, ResolutionContext resolutionContext, Type resolveType)
Produces a factory expression to produce scoped instances.
public Expression StoreExpressionIntoLocalVariable(Expression expression, ResolutionContext resolutionContext, Type resolveType)
Stores the given expression in a local variable and saves it into the resolution context for further reuse.