-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate constructor mapping into
MapAsync(topic, type, …)
overload
The existing `MapAsync(topic, type, …)` overload, which was first introduced as part of the `[MapAs()]` support (#41, 61de3bf), is the ideal place to handle constructor mapping, as it's the _only_ place where new view models are created. It will continue to first check for a cached object, but if that's not found, it will continue on to initialize a new topic view model. And if that topic view model has (public) constructor parameters, those will be mapped as part of that construction.
- Loading branch information
1 parent
963c207
commit 3b34265
Showing
1 changed file
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters