Search code examples
dnx50dryioc

DryIoc ASP.NET 5 Web API


I'm trying to create a new Web API based on the ASP.Net 5 Web API template in VS2015, with DryIoc at container. I've created a new Web API project and installed the DryIoc using package-manager

Install-Package DryIoc.Dnx.DependencyInjection -Pre

but I'm not sure how to wire up the container... haven't been able to find any 'Web API' samples showing that....

Any help would be greatly appreciated


Solution

  • I don't have a specific WebApi sample at the moment. But WebApi and Mvc are "unified" in AspNetCore, and I do have primitive Mvc sample. Hope it helps.

    Btw, I am open for ideas / PRs how to improve it further.