本文介绍了如何使用WCF service-C#监视指定的文件夹大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发asp.net应用程序。

我需要监控

As Iam developing asp.net application.
I need to monitor

C:\Monitor

(文件夹)使用wcf服务的总大小当达到1GB限制时发出警报。它应该在后台进程中完成。



例如:我将限制设置为1GB。当

(folder)Total size using wcf service and alert when it reaches 1GB limit. It should be done in background process.

For example: I have set limit as 1GB. When

C:\Monitor

文件夹达到800MB左右时,我应该提供警报信息。在IIS中托管时,如何在WCF服务或任何其他服务中使用。



我尝试过:



folder reaches near 800MB , I should provide me alert message. How it is possible in WCF Service or any other service, when hosting in IIS.

What I have tried:

I have googled so many stuff, Currently it doesn't match my requirement.

推荐答案



这篇关于如何使用WCF service-C#监视指定的文件夹大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 16:22