Windows服务和SystemFileWatcher [英] Windows Services and SystemFileWatcher

查看:128
本文介绍了Windows服务和SystemFileWatcher的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用两个systemfilewatcher的服务.一切正常,直到有一个等待时间,文件才会显示在监视的文件夹中.看来,如果长时间监视文件夹而无活动,则fw会变为非活动状态.当我重新启动服务时,它们再次按预期方式工作.

有没有人经历过?文件监视程序是否有超时时间?

TIA.

I have a service that uses two systemfilewatchers. Everything works fine until there is a wait period before files show up in the watched folders.   It seems that if the folders are watched for a length of time without activity the fw's become inactive.  When I restart the service they again act as expected.

Has anyone experienced this? Is there anything like a timeout period for a file watcher?

TIA.

推荐答案

是的,我遇到了这种情况.
Yes, I experienced this.


这篇关于Windows服务和SystemFileWatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆