Exemplo n.º 1
0
        public Task Handle(QueryAccountBalance message)
        {
            var account = Context.Child($"Account-{message.Number}");

            account.Forward(new QueryBalance(message.Number));
            //account.Tell(new QueryBalance(queryAccountBalance.Number), Sender);

            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
 public Task Handle(QueryAccountBalance message)
 {
     Sender.Tell(balance);
     return(Task.CompletedTask);
 }