Blazor Revealed by Peter Himschoot
Author:Peter Himschoot
Language: eng
Format: epub
ISBN: 9781484243435
Publisher: Apress
private DebitService ds;
private CreditService cs;
private BankRepository br;
public TransferService(
DebitService ds, CreditService cs, BankRepository br)
{
this.ds = ds;
this.cs = cs;
this.br = br;
}
public Transfer(decimal amount, Account from, Account to) {
ds.Debit(from, amount);
cs.Credit(to, amount);
br.Commit();
}
}
Listing 4-15Implementing a TransferService
If all three services use the same instance of BankRepository, then this should work fine, as in Figure 4-4.
Figure 4-4Using a scoped repository
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Building Low Latency Applications with C++ by Sourav Ghosh(2931)
Fusion 360 for Makers by Lydia Sloan Cline(1987)
Networking A Beginner's Guide by Bruce Hallberg(1933)
But How Do It Know? by J. Clark Scott(1816)
Computers For Seniors For Dummies by Nancy C. Muir(1769)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1755)
Hands-On Linux for Architects by Denis Salamanca(1738)
Hack and HHVM by Owen Yamauchi(1676)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1664)
MicroPython Projects by Jacob Beningo(1472)
PrestaShop Recipes by Arnaldo Pérez Castaño(1467)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1456)
Hands-On Internet of Things with MQTT by Tim Pulver(1417)
Raspberry Pi Electronics Projects for the Evil Genius (Tab) by Norris Donald & Norris Donald(1384)
Getting Started with Soldering: A Hands-On Guide to Making Electrical and Mechanical Connections by Vinck Marc de(1378)
Embedded Systems Architecture by Daniele Lacamera(1377)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1370)
Shaping the Fourth Industrial Revolution by Klaus Schwab & Nicholas Davis & Satya Nadella(1358)
Mastering Kubernetes by Gigi Sayfan(1349)