This project is read-only.

How to use IoC Container to create Message/Operation

Topics: Web Api
Aug 2, 2011 at 9:50 AM

Using an IoC contaienr to create/resolve dependency for ServiceContract is very easy 

var oAuthConfiguration = HttpHostConfiguration.Create()
.SetResourceFactory(new WindsorResourceFactory(container.Kernel))

but I'd like to use same IoC container to create Message/Operation and resolve dependencies as well

I noticed .SetMessageHandlerFactory but I didn't figure it out yet how to use my IoC with SetMessageHandlerFactory