BitsNPerices.Asyncronous.RunEventBased C# (CSharp) Method

RunEventBased() public method

public RunEventBased ( ) : void
return void
        public void RunEventBased()
        {
            var webClient = new WebClient();
            webClient.DownloadStringCompleted += (sender, args) =>
                {
                    Console.WriteLine(args.Result);                    
                };

            webClient.DownloadStringAsync(new Uri("http://www.google.com"));
        }