× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

C# Task Parallel Library first time slow

James Jensen
Mar 28, 2015
<p><a href="http://stackoverflow.com/a/3603413/120955">Other people</a> have noted that <code>HttpWebRequest</code> can take a long time on its first request because it's looking for proxy information. Try setting its <code>Proxy</code> property to null.</p> <pre><code>wrGETURL = WebRequest.Create(this.URL); wrGETURL.Proxy = null; </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/29236895/C#%20Task%20Parallel%20Library%20first%20time%20slow/29237150">Stack Overflow</a>.</p>
comments powered by Disqus