We are using Catle Windsor as our DI conatiner.
We have server that handle wcf requests so we registered the DbContext injected into our repositories with PerWcfSession lifestyle in order to dispose that context after each request.
On the same server we have another thread running sepeartly to do some scheduling work and we want this scheduler use one of the repository we have but the problem is that we can't reuse this repository because his DbContext is with PerWcfSession lifestyle and the scheduler thread is not part of the WCF request\response flow.
I am thinking maybe in that case we need seperate container for that seperate thread but i am not sure of that.
any ideas?
Few choices come on my mind: