title: Not able to return output back in httpresponsemessage in async
body: <p>I am struggling to read output from my adapter.PostAsync call. I am expecting it in a httpresponsemessage type in my response object.</p>
  <p>When I change <strong>Dim response As Task</strong> to <strong>Dim response As Task(Of httpresponsemessage)</strong> I am getting error like disallows implicit conversion from task to task(of )</p>
  <p>This is the code I have so far</p>
  <p>Calling method which is in VB</p>
  <pre><code>Dim response As Task = 
  adapter.PostAsync(&quot;api/rules&quot;,modelObject)
  </code></pre>
  <p>Called method which is in c# adapter class</p>
  <pre class="lang-cs prettyprint-override"><code>public Task PostAsync&lt;TResult&gt;(string end, TResult postObject)
  {
      // In this method I am calling api and  returns output as Task&lt;httpresponsemessage&gt;
      return httpClient.PostAsync(end, new stringcontent(jsonConvert.SerializeObject(postObject, json settings), encoding.UTF8, &quot;application/json&quot;));
  }
  </code></pre>