This is the sample that shows the completed result of the walkthrough.
This application is incharge of instantiating and running the walkthrough example.
The application instantiates all the necessary actors and domain entities required. It then creates two bank accounts using the
OpenNewAccountCommands for the sender and receiver. Finally, the sender makes an intent to send money to the receiver through a
TransferMoneyCommand. On successful execution of this command, the sender account emits a
MoneySentEvent that will start a
MoneyTransferSaga coordinates and facilitates with the money transfer and tells the receiver account to accept the money. Meanwhile,
RevenueSubscriber, which is subscribed to the
FeesDeductedEvent, will listen to all of these events and aggregate a "revenue" that the bank has earned.
This result is aggregated into a mock repository called the
RevenueRepository. We then query the
RevenueRepository using a
to run the application in jetbrains rider or visual studio code, run the
Akkatecture.Walkthrough.Applicationconfiguration in the IDE.