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 SignalCommandCallbackWrapper( SignalBindingBindInfo bindInfo, Pool <TCommand, TSignal> commandPool, SignalBus signalBus, TickableManager tickableManager) { if (bindInfo == null) { return; } _signalType = bindInfo.SignalType; _identifier = bindInfo.Identifier; _signalBus = signalBus; _tickableManager = tickableManager; _commandPool = commandPool; signalBus.SubscribeId(bindInfo.SignalType, _identifier, OnSignalFired); }