Is there a way to make the following function work via proxy?
public T[] ReadStream(System.IO.TextReader reader);
I want to be able to proxify the reader
instance, so that it could download a file from the web on reading attempts and cache it somewhere.
Or maybe there is something default for this purpose?
Use WebClient.DownloadFile. If you need a proxy, you can set the Proxy property of your WebClient object.
Here's an example:
You can also download the file by parts with a BinaryReader: