January 2018
Beginner to intermediate
312 pages
7h 22m
English
The serialization process is just another component that can be added to the workflow pipeline: the deserialization step is added at the front of the workflow, and the serialization step at the end of the workflow.
For example, say that we have a workflow that looks like this (we’ll ignore error handling and Results for now):
| | type MyInputType = ... |
| | type MyOutputType = ... |
| | |
| | type Workflow = MyInputType -> MyOutputType |
Then the function signatures for the deserialization step might look like this:
| | type JsonString = string |
| | type MyInputDto = ... |
| | |
| | type DeserializeInputDto = JsonString -> MyInputDto |
| | type InputDtoToDomain = MyInputDto -> MyInputType |
And the serialization step ...
Read now
Unlock full access