MEF: What if I have multiple exports but need only one import?

后端 未结 2 1815
青春惊慌失措
青春惊慌失措 2021-02-13 13:04

I\'m trying to wrap my mind around MEF. There is one thing I don\'t understand.

Assume that I have an interface, named ISomething, which is a contract, and I have more t

2条回答
  •  生来不讨喜
    2021-02-13 13:25

    See this blog post for a discussion of this issue and some of the options you have. Also, Glenn Block has a blog post describing how to customize the container behavior with defaults.

提交回复
热议问题