public RegisteredLifetimeScope(ILifetimeScope parentScope, object tag, TId id, LifetimeScopeConfigurator <TId> configurator) { _parentScope = parentScope; _configurator = configurator; _tag = tag; _id = id; _scope = new Lazy <ILifetimeScope>(CreateScope); }
public void ConfigureLifetimeScope(TId scopeId, LifetimeScopeConfigurator <TId> configureCallback) { _scopes.GetOrAdd(scopeId, key => new RegisteredLifetimeScope(_parentScope, _tag, key, configureCallback)); }