AsyncSample.Program.OldMainAsync C# (CSharp) Method

OldMainAsync() private static method

private static OldMainAsync ( ) : Task
return Task
        private static Task OldMainAsync()
        {
            var c = new HttpClient();
            return c.GetAsync("http://ufcpp.net")
                .ContinueWith(res => res.Result.Content.ReadAsStringAsync())
                .ContinueWith(content => Console.WriteLine(content.Result));
        }
    }