/// <summary> /// Initial state, reacts only on <see cref="Transfer"/> meesage. /// </summary> private void Waiting() { Command <Transfer>(ConcernsCurrentTransfer, start => { replyTo = Sender; // as mentioned since TransferSaga is created by an Account sending a money, // fromId allways is based on the parent var fromId = replyTo.AggregateId(); var toId = start.ToAccountNr; Persist(new TransferStarted(start.Amount, fromId, toId), OnTransferStarted); }); }