public SignalRActor(IEventPusher eventPusher, IActorRef shoppingActor) { _eventPusher = eventPusher; _shoppingActor = shoppingActor; Receive <AddProduct>(m => shoppingActor.Tell(m)); Receive <Login>(m => shoppingActor.Tell(m)); Receive <CartStatusChanged>(m => { _eventPusher.OnCartLoaded(m.User, m.Items); }); Receive <ProductAdded>(m => { _eventPusher.OnProductAdded(m.User, m.Product); }); }
public PushClient(IEventPusher <EffectiveAuthorizationEvent> eventPusher) { _eventPusher = eventPusher; }
public ExternalSystemBridgeActor(IEventPusher eventPusher, IActorRef roomManager, IActorRef userManager) { _eventPusher = eventPusher; _roomManager = roomManager; _userManager = userManager; }
public EventCoroutineScheduler(IEventPusher eventQueue) { this.eventQueue = eventQueue; }