Hinting target container for Exported services #521
Unanswered
chkp-omeran
asked this question in
Q&A
Replies: 2 comments 6 replies
-
@chkp-omeran Hi. If registration info would keep the original attrs, will it help? |
Beta Was this translation helpful? Give feedback.
1 reply
-
No, I don't think so, but I am not as much into context of your app ;) Regarding losing Exports in registration info, I wonder if I mark the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm converting a Prism/MEF application to Prism/DryIoc application, which heavily uses MEF's [Export] attributes.
In the application we created several custom "Export" attributes (all derived from ExportAttribute) to denote different containers, which would then be created in a hierarchy of containers.
I noticed AttributedModel.Scan creates ExpoertedRegistrationInfo without keeping the original Export(-derived) attribute that created it.
I'd much rather not change all the instances of my custom export attributes, but changing their definition is fine.
I thought about adding meta-data to my custom Export attributes, but is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions