Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering ABP Framework

You're reading from   Mastering ABP Framework Build maintainable .NET solutions by implementing software development best practices

Arrow left icon
Product type Paperback
Published in Feb 2022
Publisher Packt
ISBN-13 9781801079242
Length 526 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Halil İbrahim Kalkan Halil İbrahim Kalkan
Author Profile Icon Halil İbrahim Kalkan
Halil İbrahim Kalkan
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Part 1: Introduction
2. Chapter 1: Modern Software Development and ABP Framework FREE CHAPTER 3. Chapter 2: Getting Started with ABP Framework 4. Chapter 3: Step-By-Step Application Development 5. Chapter 4: Understanding the Reference Solution 6. Part 2: Fundamentals of ABP Framework
7. Chapter 5: Exploring the ASP.NET Core and ABP Infrastructure 8. Chapter 6: Working with the Data Access Infrastructure 9. Chapter 7: Exploring Cross-Cutting Concerns 10. Chapter 8: Using the Features and Services of ABP 11. Part 3: Implementing Domain–Driven Design
12. Chapter 9: Understanding Domain-Driven Design 13. Chapter 10: DDD – The Domain Layer 14. Chapter 11: DDD – The Application Layer 15. Part 4: User Interface and API Development
16. Chapter 12: Working with MVC/Razor Pages 17. Chapter 13: Working with the Blazor WebAssembly UI 18. Chapter 14: Building HTTP APIs and Real-Time Services 19. Part 5: Miscellaneous
20. Chapter 15: Working with Modularity 21. Chapter 16: Implementing Multi-Tenancy 22. Chapter 17: Building Automated Tests 23. Other Books You May Enjoy

Implementing application services

An application service is a stateless class used by the presentation layer to perform use cases of the application. It orchestrates the domain objects to achieve the business operation. Application services get and return DTOs instead of entities.

An application service method is considered a work unit (meaning all database operations—all succeed or all fail as a group, as covered in Chapter 6, Working with the Data Access Infrastructure), which ABP Framework automatically does. A typical flow of an application service method includes the following steps:

  1. Get the necessary aggregates from the repositories using the input parameters and the current context.
  2. Implement the use case by coordinating the aggregates, domain services, and other domain objects, and delegating the work to them.
  3. Update the changed aggregates in the database using the repositories.
  4. Optionally, return a resulting DTO to the client (typically, to the...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime