Ninject scoping for DBContext used in Quartz.Net job
What's the best scoping to use for a DbContext implementation that gets instantiated via Ninject dependency resolver during execution of a Quartz.Net job implementation? If I used thread scope, will the same instance of DbContext get served if the same thread in Quartz's thread pool is used to execute the job multiple times? I would like a scope that means I get one (and only one) new instance of the DbContext each time the job is fired. BatteryBackupUnit Yes, i would advise against using InThreadScope . When a thread-pool thread is used, there will be leakage. Furthermore, there's nothing