WCF, BasicHttpBinding: Stop new connections but allow existing connections to continue
问题 .NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in a Windows service. When the Windows service shuts down, due to upgrades, scheduled maintenance, etc, I need to gracefully shut down my WCF service. The WCF service has methods that can take up to several seconds to complete, and typical volume is 2-5 method calls per second. I need to shut down the WCF service in a way that allows any previously call methods to complete, while denying any new calls. In this