Skip to content

Commit

Permalink
GitBook: [master] one page modified
Browse files Browse the repository at this point in the history
  • Loading branch information
mynkow authored and gitbook-bot committed Oct 20, 2020
1 parent 483adb8 commit d16201d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a handler where commands are received and delivered to the addressed Aggregate. Such handler is called an [_ApplicationService_](application-services.md). This is the _write side_ in [CQRS](../../concepts/cqrs.md).

An application service is a command handler for a specific aggregate. One aggregate has one application service whose purpose is to handle commands and invoke the aggregate root's correct methods passing the command's payload. It mediates between Domain and infrastructure and it shields any domain model from the "outside". Only the Application Service interacts with the domain model.
An [_ApplicationService_](application-services.md) is a command handler for a specific [Aggregate](../aggregate.md). One aggregate has one [_ApplicationService_ ](application-services.md)whose purpose is to orchestrate how a command will be fulfilled. Its the ApplicationService responsibility to invoke the appropriate Aggregate methods and pass the command's payload. It mediates between Domain and infrastructure and it shields any domain model from the "outside". Only the Application Service interacts with the domain model.

You can create an application service with Cronus by using the `AggregateRootApplicationService` base class. Specifying which commands the application service can handle is done using the `ICommandHandler<T>` interface.

Expand Down

0 comments on commit d16201d

Please sign in to comment.