开发者

Making a WCF Singleton run for long periods

开发者 https://www.devze.com 2023-03-23 08:40 出处:网络
I have a WCF service that runs as a singleton in IIS. The issue with this service is that the worker process recycles in approx. 40 minutes.

I have a WCF service that runs as a singleton in IIS. The issue with this service is that the worker process recycles in approx. 40 minutes.

Is it possible t开发者_JS百科o make the service run for long periods using IIS settings? If yes, please let me know some IIS settings. Or, is there another way to be followed to keep the WCF in IIS alive....


You might want to consider hosting the service as a Windows Service instead of IIS. You're kinda fighting the IIS on-demand instantiation lifecycle by configuring the service as a singleton.


You should set Idle timeout to 0 value in advanced settings for application pool

0

精彩评论

暂无评论...
验证码 换一张
取 消