BitsAndPieces.Asynchrony.RunWithEvents C# (CSharp) Method

RunWithEvents() public method

public RunWithEvents ( ) : void
return void
        public void RunWithEvents()
        {
            var webClient = new WebClient();
            webClient.DownloadStringCompleted += (sender, args) =>
                {
                    Debug.WriteLine(args.Result);
                };
            webClient.DownloadStringAsync(new Uri("http://www.google.com"));
        }