Ejemplo n.º 1
0
        private Resolver <CType> CreateResolverInstance <BType, CType>(BindingKey bindingKey, IBindingConfig bindingConfig)
            where BType : class
            where CType : class, BType
        {
            if (bindingConfig == null)
            {
                bindingConfig = BindingConfigUtils.CreateImplicitBindingSettings <CType> ();
            }
            else
            {
                bindingConfig = BindingConfigUtils.MergeImplicitWithExplicitSettings <CType> (bindingConfig);
            }

            var resolver = new Resolver <CType> (this, bindingConfig, syncLock);

            allResolvers.Add(bindingKey, resolver);

            return(resolver);
        }
Ejemplo n.º 2
0
 private IBoundBinding <BType, CType> AddPropertyInjectorInner <TPropertyType>(Expression <Func <CType, TPropertyType> > propertyExpression, Expression <Func <TPropertyType> > setter)
 {
     BindingConfigUtils.AddMemberInjectorToBindingConfig <CType, TPropertyType> (BindingConfig, propertyExpression, setter);
     return(this);
 }
Ejemplo n.º 3
0
 public IBoundMembersBinding <CType> InjectMember <TPropertyType> (Expression <Func <CType, TPropertyType> > memberExpression, Expression <Func <TPropertyType> > setter)
 {
     BindingConfigUtils.AddMemberInjectorToBindingConfig <CType, TPropertyType> (BindingConfig, memberExpression, setter);
     return(this);
 }