Webservice C# ASMX, timeout-event from IIS Server?

我的梦境 提交于 2019-12-12 05:49:01

问题


I have a webservice running on an IIS server using c# and a asmx file.

The Service is able to upload files requested by users to a ftp-server for them to temporarily view.

The temporary folders are cleared on logout and such things... but if the user does not log out and just closes the tab or the browser in general, the files will stay at the FTPserver...

I wanted to make a "garbagecollector" function wich will clean up these files, or any files older than XXXXX.

So, since the Webservice will timeout after the amount of minutes specified in the IIS config, I can't run a timer to do this.

Is there any event that is triggered when the webservice is about to "shut down" (time-out)?

I was googling like crazy... didn't find anything useful (or I was googling wrong)...

来源:https://stackoverflow.com/questions/20003679/webservice-c-sharp-asmx-timeout-event-from-iis-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!