I have an Entity Framework context being injected into a background job (handled with Hangfire.io). Hangfire spawns threads for each background worker... But runs multiple jobs on the same worker. So my EF context may be kept around for a long time.
I'd like to remove the Ninject instance for a Job's thread at the end of it's execution. Thus causing it to create a new instance for the next resolution of that type in the same thread.
How do I go about removing an instance from an InThreadScope in Ninject?