Last post Sep 22, 2016 03:45 PM by gib9898_00
Sep 21, 2016 05:17 PM|gib9898_00|LINK
Hello, I just created a Web API and I'm going to need some help setting up IoC. Essentially what I want is to inject a service into a controller constructor.
My first shot at this was to use StructureMap but I learned that is not really designed for WebAPI's.
Now I'm looking at Autofac, but I'm finding very few guides out there that show how to integrate Autofac into a web API with OWIN for IoC support (there are a lot of guides, just not very many good ones).
Does anyone know of any good walkthroughs?
Sep 22, 2016 09:07 AM|Yohann Lu|LINK
I found some links about Autofac for Web API's with OWIN support in the below. I hope they will help you.
Dependency Injection in ASP.NET Web API using Autofac:
Web API — Autofac 4.0 documentation:
Sep 22, 2016 03:45 PM|gib9898_00|LINK
Thanks very much Yohann. I'll have a read through those.