I'm using Microsoft.Practices.ObjectBuilder
in a web project to handle dependency injection (between view and presenter for example).
I've recently added an ASP.NET Web Service (.asmx) to handle ajax calls. I would like to use dependency injection with ObjectBuilder
here as well, but I can't get it working.
I tried to just simply add something like this:
[CreateNew]
public MyClass MyClass
{
set
{
_myClass = value;
}
}
But this isn't working. The property setter of MyClass
is never called. Is it even possible to get this working?