External Libraries -MANAGE Mappings for Micro services
In order to pass values from request to command object, we need a mapping object and mapping library.
- Open the our request lifecycle, see that once we get the request object, we should convert this request object as a command object in order to trigger command handler.
- So how we can convert request to command object. By Using mapping library “Mapster”.
- Mapsteris a high performance object mapper. And it is very straightforward and flexible and perfect for mapping objects.
- We will use master in order to convert our request module to the mediator command object and vice versa.
Open Manage Nuget Packages
- Install Mapster in external library “MsExternalBlocks”