Exemplo n.º 1
0
        private void Handle(TakeProductMsg msg)
        {
#warning  // test if item exists / create one if not

            ActorSelection itemActor = Context.ActorSelection(ActorSelectionPaths.BasketItem(msg.BasketId, msg.ProductId));
            itemActor.Tell(msg);
        }
Exemplo n.º 2
0
        private void Handle(ReturnProductMsg msg)
        {
            ActorSelection itemActor = Context.ActorSelection(ActorSelectionPaths.BasketItem(msg.BasketId, msg.ProductId));

            itemActor.Tell(msg);
        }