Example #1
0
        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));
        }
Example #2
0
 protected override Lifetime <T> CreateLifetime()
 {
     return(LifetimeHelper.CreateLifetime <T>(LifetimeProvider));
 }