InternetException

WCF

WCF · 1 post (all tags)

Ninject and WCF

· 817 words · ~4 min read · updated · in .NET, ASP.NET

#Ninject #WCF #API design

Ninject is very simple and in the same time powerful IoC container. I used it in few project and had very little or none problems. Most of the time getting instances from Ninject kernel requires simple line with binding expression, or even this is sometime unnecessary if type is self bind able (i.e. if it is concrete class with parameterless constructor). Little harder is getting Ninject to work with WCF. You cannot just bind interfaces types because proxies which implements them are created through .NET mechanism. Luckily WCF system is very flexible and mostly can be changed/extended with custom functionality.

Read the whole thing →