title: PostAsync() method is not working in dot-net core window service
body: <p>I am trying the run the <strong>console application as a window service</strong> in dot-net core and able to create ,start ,stop and delete the service.<br>
  I am using <strong>PostAsync()</strong> method in application but the issue is that this method is working perfectly in console application but in window service most of the times <strong>PostAsync()</strong> never returned any response.  </p>
  
  <p>Any help would be highly appreciated. Thanks!</p>
  
  <pre><code>string abc=\"firstparameter\":\"English\",\"secondParameter\":\"Hindi\",\"Marks\":\"Result \"}";
  var response = await client.PostAsync("url", new StringContent(ab, Encoding.UTF8, "application/json")).ConfigureAwait(false))
  </code></pre>
  
  <p>and By this way</p>
  
  <pre><code>var response = client.PostAsync("url", content).Result;
  var objResult = response.Content.ReadAsStringAsync().Result;
  </code></pre>