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