Cannot access a disposed object exception when method invoked by fluent scheduler job
问题 I'm getting the "Cannot access a disposed object" exception during a call to a method that uses a DI-injected dbcontext (Transient-scoped)-- most likely the dbcontext was already disposed when being invoked. The method is being invoked as a job by fluent scheduler: JobManager.AddJob( () => ExecuteUpdateDbContext(), (s) => s.ToRunNow().AndEvery(60).Minutes() ); The ExecuteUpdateDbContext method works in any under circumstance except when used by fluent scheduler. Do I need to do something