In our application we are using windows service & WCF service. One of the task of the application is as follows:
- Client copy file (large file) in specific server location using our admin web site.
- We have a Windows service which pick up the file from server & dump data to database.
- WCF service used those data to during service call.
We need solution for following situation
- If file copy is in progress windows service should not pick-up that file. How to identify that?
- If widows service is running and in that moment if any service request comes WCF service need to response that "windows service is processing data so please make request again after sometimes". How to identify that the windows service is running?