ObjectBuilder <T> CreateObjectBuilder()
        {
            var admin       = CreateRegistrationAdmin();
            var description = CreateObjectDescription();

            _lifetime = LifetimeHelper.CreateLifetime <T>(LifetimeProvider);
            var configurationSet = CreateInjectionConfigurationSet(description, admin);

            return(InjectionCondition == null
                ? new ObjectBuilder <T>(description, admin, _lifetime, configurationSet)
                : new ObjectBuilderWithCondition <T>(description, admin, _lifetime, configurationSet, InjectionCondition));
        }
Ejemplo n.º 2
0
 protected override Lifetime <T> CreateLifetime()
 {
     return(LifetimeHelper.CreateLifetime <T>(LifetimeProvider));
 }