I got an windows service application which dynamically loads some other modules in other new appdomain. The problem is they are all using the same static database connections. I can dispose the static connections in the main AppDomain when I shutdown the service. But how can I immediately dispose the other static connections in other AppDomain. The problem is since the other connections still exist, the service application still runs in the Task Manager even I fully stop it.
Thanks