Posts Tagged ‘WebApI’

Use Unity container in Controller of Owin Web api 2 hosted on web

Just want to share a few tips about how use unity dependency resolver in a web api2 project through owin.
First tip is for parameter-less resolving, you do not have to get access of unity container at all, it is resolved automatically.
For example you want to inject a Repository to your Product Controller
Read the rest of this entry »