Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
The first service we wrote simply created a facade for the class we had already written. When we write services, we usually write them in a single class that acts as a facade to other business logic. The aim of a facade is to simplify the instantiation and usage of a class. While doing this, we should keep the service methods we write within a topic, such as services methods that interact with vehicles. We wouldn't add methods that interact with service orders; these should be placed in a new class.
Since the ConVMSVehicleGroupChange class already accepted a contract as an input parameter to its Run method, the service method was relatively straightforward. In fact, we could have created a service directly to this class, but ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access