How to gracefully shutdown poolfiber?

boudinov
edited April 2014 in DotNet
Hello,
On the Loadbalancing example solution, you usually have instances of ApplicationBase, which reference a Lobby, which is synchronized by means of PoolFiber.
When server(s) are shutting down, these pool fibers are not waited to complete all their enqueued jobs. What is the correct way to do so - like waiting for Enqueue/Dequeue counters to equalize in ApplicationBase.TearDown or something?
Thank you

Comments