Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Windows Service,FileSystemWatcher for a remote URL and using WebClient

$
0
0

Hi

I am writing a windows service to monitor a folder on a https remote address that can be accessed using Proxy only.

I think inorder to have access to the url I need to use the System. Net.Webclient class. Something like this

 WebClient Client = new WebClient();
                Uri FromLocationFile = new Uri(e.FullPath);

Now what I don't know if how to attach a file watcher with it

 FileSystemWatcher Watcher = new FileSystemWatcher();
            Watcher.Path= ????

Please let me know if there are any suggestions on how to use FileSystemWatcher to watch a folder that is behind proxy with http address.

Thanks much

-Sarah


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>