Пример #1
0
        private void Handle(TransferConfirmation command)
        {
            Context.Log(x => x.Info("{Actor} - Confirmation Recieved!!", Self.Path));

            Context.ActorSelection("..").Tell(command);
            Self.Tell(PoisonPill.Instance);
        }
Пример #2
0
        private void Handle(TransferConfirmation command)
        {
            var result = Account.AcceptTransferTo(command.Id, Data);

            if (result.IsOk)
            {
                Data = result.SucceededWith();
            }
            else
            {
                //TODO Samething as error 400
                //Sender.Tell()
            }

            Context.Log(x => x.Info("{Actor} - Transfer Accepted.", Self.Path));
        }