Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- using System.Threading.Tasks;
- public class Program
- {
- public static void Main()
- {
- var count = 0;
- Parallel.For(0, int.MaxValue, x =>
- {
- WebClient wc = new WebClient();
- //wc.DownloadStringCompleted += Wc_DownloadStringCompleted;
- Task.Run(() =>
- {
- wc.DownloadString("https://mango.buzzfeed.com/polls/service/editorial/post?poll_id=9673976&result_id=1&callback=__jsonp_1");
- });
- count++;
- Console.WriteLine(string.Concat("Vote Count: ", count));
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement