阅读背景:

WCF自托管服务,客户端清理服务停止

来源:互联网 

I'm curious to know how I would go about setting up my service to stop cleanly on the server the service will be installed on. For example when I have many clients connecting and doing operations every minute and I want to shut-down the service for maintenance, how can I do this in the "OnStop" event of the service to then let the main service host to deny any new client connections and let the current connections finish before it actually shuts down its services to the client, this will ensure data isn't corrupted on the server as the server shuts down.I'm curious to know how I would go about settin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: