Пример #1
0
        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);
            });
        }
Пример #2
0
 public PushClient(IEventPusher <EffectiveAuthorizationEvent> eventPusher)
 {
     _eventPusher = eventPusher;
 }
 public ExternalSystemBridgeActor(IEventPusher eventPusher, IActorRef roomManager, IActorRef userManager)
 {
     _eventPusher = eventPusher;
     _roomManager = roomManager;
     _userManager = userManager;
 }
Пример #4
0
 public EventCoroutineScheduler(IEventPusher eventQueue)
 {
     this.eventQueue = eventQueue;
 }