Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Verify that services dispose in reverse order #58
When disposing the Context, services should be disposed in reverse order of their initialization. However, looking at the log entries and printing which services are closing you can see they close in a much different order. Make sure that services are closing in a safe orderly fashion.
The ServiceIndex is populated in the correct initialization order. However internally that class does not maintain the order since it is a SortedObjectIndex. So the call in Context#dispose() that walks the services in reverse order can't really know the correct order.