C#/.Net 4.0 WCF service with Ninject.Extensions.Wcf for DI
$30-5000 USD
Closed
Posted almost 13 years ago
$30-5000 USD
Paid on delivery
take a look at the attached VS 2010 C# solution. It's very simple - 1 project with single WCF service, and another one is MVC app which uses this service. I need you to make it work - i.e. I should be able to call http://localhost:10540/api/v1/events/SignIn?code=1234 and to get an event back. Right now I get
*The service type provided could not be loaded as a service because it does not have a default (parameter-less) constructor. To fix the problem, add a default constructor to the type, or pass an instance of the type to the host.*
error - but apparantly the solution I'm looking for IS NOT to add parameter-less constructor - I need you to figure out dependency injection thing with WCF service.
I used Ninject + wcf extension for it, but I'm open to Unity as well.
If solution won't compile for you - please make sure you added Ninject, [login to view URL] packages via NuGet.