title: HttpClient GetStringAsync - It never comes back
body: <p>New ASP.NET Web API HttpClient has been giving me some strange results. Here is my code:</p>
  
  <pre><code>class Program {
  
      static async void Main(string[] args) {
  
          var address = "http://localhost:3895/api/urls";
  
          Console.WriteLine(await getStringAsync(address));
          Console.ReadLine();
  
      }
  
      public static async Task&lt;string&gt; getStringAsync(string uri) {
  
          var httpClient = new HttpClient();
          return await httpClient.GetStringAsync(uri);
      }
  }
  </code></pre>
  
  <p>This never comes back and the console suddenly appears and disappears. When I change the code as below, it works as it is supposed to:</p>
  
  <pre><code>static void Main(string[] args) {
  
      var address = "http://localhost:3895/api/urls";
  
      Console.WriteLine(getString(address));
      Console.ReadLine();
  
  }
  
  public static string getString(string uri) { 
  
      var httpClient = new HttpClient();
  
      return httpClient.GetStringAsync(uri).Result;
  }
  </code></pre>
  
  <p>Any idea on what would be the issue?</p>