I have created project with an asp.net 5 web api template. The
startup.cs file content is like this.
public class Startup
public Startup(IHostingEnvironment env)
public void ConfigureServices(IServiceCollection services)
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
I want to use a IoC framework like Autofac, StructureMap and Ninject. But How can I change default web api dependency resolver with a framework?
For example StructureMap container is set like this:
var container = new StructureMap.Container(m=>m.Scan(x =>
But can not set it in web api life.