public SignalCallbackWrapper( Action <TSignal> action, SignalBus signalBus) { _signalBus = signalBus; _action = action; signalBus.Subscribe <TSignal>(OnSignalFired); }
public SignalCallbackWrapper( Type signalType, Action <object> action, SignalBus signalBus) { _signalType = signalType; _signalBus = signalBus; _action = action; signalBus.Subscribe(signalType, OnSignalFired); }
public SignalCallbackWrapper( SignalBindingBindInfo bindInfo, Action <object> action, SignalBus signalBus) { _signalType = bindInfo.SignalType; _identifier = bindInfo.Identifier; _signalBus = signalBus; _action = action; signalBus.Subscribe(bindInfo.SignalType, OnSignalFired, _identifier); }
public SignalCallbackWithLookupWrapper( Func <TObject, Action <TSignal> > methodGetter, Guid lookupId, SignalBus signalBus, DiContainer container) { _container = container; _methodGetter = methodGetter; _signalBus = signalBus; _lookupId = lookupId; signalBus.Subscribe <TSignal>(OnSignalFired); }
public SignalCallbackWithLookupWrapper( Type signalType, Type objectType, Guid lookupId, Func <object, Action <object> > methodGetter, SignalBus signalBus, DiContainer container) { _objectType = objectType; _signalType = signalType; _container = container; _methodGetter = methodGetter; _signalBus = signalBus; _lookupId = lookupId; signalBus.Subscribe(signalType, 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.Subscribe(signalBindInfo.SignalType, OnSignalFired, _identifier); }
private void Initialize(SignalBus signalBus) { signalBus.Subscribe <T>(x => Subject.OnNext(x)); }