c# - FileSystem watcher path is not working -


I have created the C # window service to monitor active directory password changes. Whenever a password changes, the service will call a web service and return results. If the service does not return, the Forward Directory creates a text file for it; Otherwise, if the service starts, if there is a pending request, it will be processed.

  // whenever the file was created ... synchronize pending requests. This will create files when active directory changes are made, if the request is made then it is not otherwise to delete the created file < / Code>  

When I 'change the path. FileVetcher is not firing incident like changing password with any other name data or some such password. If someone can help me fix this problem.

Do you remember setting up the filter somewhere?

I can not see where your motivation is but it may be that:

  NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.LastAccess | NotifyFilters.Attributes;    

Comments