Owin Context to use a single instance per request
问题 app.CreatePerOwinContext(DataContext.Create); I have the above line to create a data context this code came with project when i kick a new MVC 5 project. At the same time, i am using autofac to inject single instance per request in my dependency registrar. builder.RegisterType<DataContext>().As<IDbContext>().InstancePerRequest(); What is the best way to use owin and DI container? I have a DataContext class which has a static Method called Create as above and this break when I try to inject a