Exemplo n.º 1
0
 public Injector(IValueBinder valueBinder, IPresenterBinder controlBinder) : this()
 {
     SetBinder(valueBinder);
     SetControlBinder(controlBinder);
     SetFactory(new DependencyFactory(valueBinder.Container, controlBinder.Container));
     SetInjector(new DependencyInjector(Factory, BindControl, Bind));
 }
Exemplo n.º 2
0
 public DependencyInjector(IDependencyFactory factory, IPresenterBinder controlBinder, IValueBinder valueBinder, IBuildQueue find, IBuildQueue insert)
 {
     Factory     = factory;
     Value       = valueBinder;
     Presenter   = controlBinder;
     this.find   = find;
     this.insert = insert;
 }
Exemplo n.º 3
0
        IDependencyFactory IBuilder.CreateFactory(out IValueBinder valueBinder, out IPresenterBinder presenterBinder)
        {
            var factory = (this as IBuilder).CreateFactory(out IDependencyContainer values, out IDependencyContainer presenters);

            valueBinder     = (this as IBuilder).CreateValueBinder(values);
            presenterBinder = (this as IBuilder).CreatePresenterBinder(presenters);
            return(factory);
        }
Exemplo n.º 4
0
        public DependencyInjector(IDependencyFactory factory, IPresenterBinder controlBinder, IValueBinder valueBinder)
        {
            Factory   = factory;
            Value     = valueBinder;
            Presenter = controlBinder;

            find   = Builder.FindDependencies.InFieldsPropertiesAndMethods(Value.Container);
            insert = Builder.InsertDependencies.IntoFieldsPropertiesAndMethods(Value.Container);
        }
Exemplo n.º 5
0
 public Injector(IDependencyInjector injector, IDependencyFactory factory, IValueBinder valueBinder, IPresenterBinder controlBinder) : this()
 {
     SetInjector(injector);
     SetFactory(factory);
     SetBinder(valueBinder);
     SetControlBinder(controlBinder);
 }
Exemplo n.º 6
0
 protected void SetControlBinder(IPresenterBinder value)
 => Injector.controlBinder = value;