Skip to content
Discussion options

You must be logged in to vote

Sorry, you were simplifying for me, I get you now!

You don't have to implement an extension method in each assembly, but it's a pattern I like myself. It makes each assembly a little more self-contained and suggests that the assembly takes responsibility for its own registrations, which I appreciate. If you ended up with multiple UIs all making use of the same business object library then there would be no duplication of the discovery code.

In the simplest form (in my head at least) it probably doesn't matter what the types inherit from. If your naming convention is consistent, and all of the classes ending in Factory in the assembly are to be registered, then the code I would write would…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@swegele
Comment options

@swegele
Comment options

@TheCakeMonster
Comment options

@swegele
Comment options

Answer selected by swegele
Comment options

You must be logged in to vote
1 reply
@TheCakeMonster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants