Example #1
0
        public override IEnumerable <ZenjectResolveException> ValidateBinding(Type contractType, InjectContext context)
        {
            if (_creator.HasInstance())
            {
                // This would be the case if given an instance at binding time with ToSingle(instance)
                return(Enumerable.Empty <ZenjectResolveException>());
            }

            return(BindingValidator.ValidateObjectGraph(_container, GetInstanceType()));
        }
Example #2
0
 public IEnumerable <ZenjectResolveException> ValidateObjectGraph(Type contractType, params Type[] extras)
 {
     Assert.That(!contractType.IsAbstract);
     return(BindingValidator.ValidateObjectGraph(this, contractType, extras));
 }
Example #3
0
 // Walk the object graph for the given type
 // Throws ZenjectResolveException if there is a problem
 public IEnumerable <ZenjectResolveException> ValidateResolve(Type contractType)
 {
     return(BindingValidator.ValidateContract(this, contractType));
 }
Example #4
0
 // Walk the object graph for the given type
 // Throws ZenjectResolveException if there is a problem
 public IEnumerable <ZenjectResolveException> ValidateResolve <TContract>()
 {
     return(BindingValidator.ValidateContract(this, typeof(TContract)));
 }
Example #5
0
 public override IEnumerable <ZenjectResolveException> ValidateBinding(Type contractType, InjectContext context)
 {
     return(BindingValidator.ValidateObjectGraph(_container, typeof(T)));
 }
 public override IEnumerable <ZenjectResolveException> ValidateBinding()
 {
     return(BindingValidator.ValidateObjectGraph(_container, _concreteType));
 }