Streams - portable httpwebrequest - proxy

Dec 18, 2015 at 10:29 PM
As the project targets the portable libraries - why oh why, the cause of all my suffering lol - and connect via the httpwebrequest, there is no proxy / iwebproxy property to set (that I can see)

Is there anyway to connect via a proxy?


I have tried searching around and there doesn't seem to be a lot of information on this. Only thing I can think of is rebuliding tweetinvi targeting .net4.5 only, but as I cannot just remove the portable targetings, I have to recreate the whole solution adding each file by file - not a pleasant way to spend the afternoon so am hoping beyond hope there is a better way to do this


cheers
Dec 19, 2015 at 3:22 PM
so I got it working

I took the StreamTask out the portable project, and added a new project just for this class. Then some hacks to allow the container to know what IStreamTask implementation is, then am able to set the proxy.
Coordinator
Dec 20, 2015 at 12:30 AM
Looking at the code proxies should be quite easy to implement without having to get rid of the proxy classes.
By simply changing the StreamTask class (line 89 - after _twitterQuery = _generateTwitterQuery();) and set up the TwitterQuery proxy this should be enabled for the stream.

This has not been done in regard to testing time required but this should be as easy as that.