Example #1
0
 public ConcreteBinderNonGeneric(
     DiContainer bindContainer, BindInfo bindInfo,
     BindStatement bindStatement)
     : base(bindContainer, bindInfo, bindStatement)
 {
     ToSelf();
 }
Example #2
0
 public FromBinderGeneric(
     DiContainer bindContainer,
     BindInfo bindInfo,
     BindStatement bindStatement)
     : base(bindContainer, bindInfo, bindStatement)
 {
     BindingUtil.AssertIsDerivedFromTypes(typeof(TContract), BindInfo.ContractTypes);
 }
        public BindSignalToBinder(DiContainer container, SignalBindingBindInfo signalBindInfo)
        {
            _container = container;

            _signalBindInfo = signalBindInfo;
            // This will ensure that they finish the binding
            _bindStatement = container.StartBinding();
        }
Example #4
0
 public FromBinder(
     DiContainer bindContainer, BindInfo bindInfo,
     BindStatement bindStatement)
     : base(bindInfo)
 {
     BindStatement = bindStatement;
     BindContainer = bindContainer;
 }
 public BindSignalFromBinder(
     SignalBindingBindInfo signalBindInfo, BindStatement bindStatement, Func <TObject, Action <TSignal> > methodGetter,
     DiContainer container)
 {
     _signalBindInfo = signalBindInfo;
     _bindStatement  = bindStatement;
     _methodGetter   = methodGetter;
     _container      = container;
 }
Example #6
0
        public SubContainerBinder(
            BindInfo bindInfo,
            BindStatement bindStatement,
            object subIdentifier, bool resolveAll)
        {
            _bindInfo      = bindInfo;
            _bindStatement = bindStatement;
            _subIdentifier = subIdentifier;
            _resolveAll    = resolveAll;

            // Reset in case the user ends the binding here
            bindStatement.SetFinalizer(null);
        }
Example #7
0
 public FromBinderNonGeneric(
     DiContainer bindContainer, BindInfo bindInfo,
     BindStatement bindStatement)
     : base(bindContainer, bindInfo, bindStatement)
 {
 }