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())); }
public IEnumerable <ZenjectResolveException> ValidateObjectGraph(Type contractType, params Type[] extras) { Assert.That(!contractType.IsAbstract); return(BindingValidator.ValidateObjectGraph(this, contractType, extras)); }
// 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)); }
// 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))); }
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)); }