Using MEF with NHibernate and Castle Windsor?

I have spiked small prototype of Windsor->Mef integration 6 months ago here It is targetting the scenario you seem to be implementing, where you bootstrap your application with Windsor, and want to use MEF for extensibility. You can check it out, perhaps it'll give you some ideas.

I have spiked small prototype of Windsor->Mef integration 6 months ago here. It is targetting the scenario you seem to be implementing, where you bootstrap your application with Windsor, and want to use MEF for extensibility. You can check it out, perhaps it'll give you some ideas.

I liked your blog post on this too – dbones Nov 21 '10 at 15:49.

The Who Can Help Me application is using ASP. NET MVC, Castle Windsor and MEF and N Worth a look for some ideas.

There are more than one possible approaches you might use depending on what you'd like to achieve. Ditch Windsor in favor of MEF, if possible. If you don't use Windsor's more advanced features, you could easily use MEF instead of Windsor.(Read this post to see if it is suitable for you.) If you'd like to stick to both of them, read this.

(Perhaps this is the same post you mentioned? ) As Glenn wrote, it is perfectly reasonable to have both MEF and Windsor. Here's what I think: Windsor serves as an IoC container for the actual components in your app MEF should be responsible for external components and 3rd party extensions in your app This should also answer the questions that Glenn raised at the end of his blog post.

(And btw, the comments are also worth to read, he says he has a working bridge for Castle. ) Some more stuff you can find in this question. Hope this helps.

I wouldn't call them "advanced features", in fact they're stock features for any decent IoC container. MEF doesn't have many of those features because it's not intended to be used as an IoC container. – Mauricio Scheffer May 23 '10 at 19:14 @Mauricio - Yes, you are right.

MEF is not meant to be an IoC container, yet it can be used for basic IoC purposes. – Venemo May 24 '10 at 9:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions