Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Fixed broken image link in HttpMessageConverter quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaia committed Sep 16, 2012
1 parent c7182e5 commit c916a24
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ static void Main(string[] args)

// Get image from url
#if NET_4_0
Bitmap gitHubLogo = template.GetForObjectAsync<Bitmap>("https://github.com/images/modules/header/logov3.png").Result;
Bitmap nuGetLogo = template.GetForObjectAsync<Bitmap>("http://nuget.org/Content/Images/nugetlogo.png").Result;
#else
Bitmap gitHubLogo = template.GetForObject<Bitmap>("https://github.com/images/modules/header/logov3.png");
Bitmap nuGetLogo = template.GetForObject<Bitmap>("http://nuget.org/Content/Images/nugetlogo.png");
#endif

// Save image to disk
string filename = Path.Combine(Environment.CurrentDirectory, "GitHubLogo.png");
gitHubLogo.Save(filename);
Console.WriteLine(String.Format("Saved GitHub logo to '{0}'", filename));
string filename = Path.Combine(Environment.CurrentDirectory, "NuGetLogo.png");
nuGetLogo.Save(filename);
Console.WriteLine(String.Format("Saved NuGet logo to '{0}'", filename));
}
#if NET_4_0
catch (AggregateException ae)
Expand Down

0 comments on commit c916a24

Please sign in to comment.