Ejemplo n.º 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()));
        }
Ejemplo n.º 2
0
 public IEnumerable <ZenjectResolveException> ValidateObjectGraph(Type contractType, params Type[] extras)
 {
     Assert.That(!contractType.IsAbstract);
     return(BindingValidator.ValidateObjectGraph(this, contractType, extras));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 5
0
 public override IEnumerable <ZenjectResolveException> ValidateBinding(Type contractType, InjectContext context)
 {
     return(BindingValidator.ValidateObjectGraph(_container, typeof(T)));
 }
Ejemplo n.º 6
0
 public override IEnumerable <ZenjectResolveException> ValidateBinding()
 {
     return(BindingValidator.ValidateObjectGraph(_container, _concreteType));
 }