Does thread scope in ninject creates new dbcontext on every thread call
问题 I have configured ninject in wep api as below. I have created two kernel objects, one in request scope and another in thread scope: var requestKernel = new StandardKernel(); requestKernel.Bind<IGlobalDbContext>().ToConstructor(ctx => new GlobalDbContext(Configuration.GlobalDbContext)).InRequestScope(); var threadKernel = new StandardKernel(); RegisterServices(threadKernel); threadKernel.Bind<IGlobalDbContext>().ToConstructor(ctx => new GlobalDbContext(Configuration.GlobalDbContext))