-
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.
Introduced
Preregister()
method on MappedTopicCache
The `Preregister()` method allows a `MappedTopicCacheEntry` to be created before the `MappedTopic` has even completed construction. This allows a placeholder for the `MappedTopic` to be created, which in turn allows us to detect and prevent circular references during construction. (Circular references are allows when mapping properties, just not constructor parameters.) If a circular reference is detected—i.e., `Preregister()` is called on an existing topic—then a `TopicMappingException` is thrown.
- Loading branch information
1 parent
8f86392
commit cb41728
Showing
1 changed file
with
38 additions
and
0 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