public BindSignalToBinder(DiContainer container, SignalBindingBindInfo signalBindInfo) { _container = container; _signalBindInfo = signalBindInfo; // This will ensure that they finish the binding _bindStatement = container.StartBinding(); }
public BindSignalFromBinder( SignalBindingBindInfo signalBindInfo, BindStatement bindStatement, Func <TObject, Action <TSignal> > methodGetter, DiContainer container) { _signalBindInfo = signalBindInfo; _bindStatement = bindStatement; _methodGetter = methodGetter; _container = container; }
public SignalCallbackWrapper( SignalBindingBindInfo bindInfo, Action <object> action, SignalBus signalBus) { _signalType = bindInfo.SignalType; _identifier = bindInfo.Identifier; _signalBus = signalBus; _action = action; signalBus.SubscribeId(bindInfo.SignalType, _identifier, OnSignalFired); }
public SignalCallbackWithLookupWrapper( SignalBindingBindInfo signalBindInfo, Type objectType, Guid lookupId, Func <object, Action <object> > methodGetter, SignalBus signalBus, DiContainer container) { _objectType = objectType; _signalType = signalBindInfo.SignalType; _identifier = signalBindInfo.Identifier; _container = container; _methodGetter = methodGetter; _signalBus = signalBus; _lookupId = lookupId; signalBus.SubscribeId(signalBindInfo.SignalType, _identifier, OnSignalFired); }
public BindSignalIdToBinder(DiContainer container, SignalBindingBindInfo signalBindInfo) : base(container, signalBindInfo) { }
public static BindSignalIdToBinder <TSignal> BindSignal <TSignal>(this DiContainer container) { var signalBindInfo = new SignalBindingBindInfo(typeof(TSignal)); return(new BindSignalIdToBinder <TSignal>(container, signalBindInfo)); }