Will the IO bound code in this context be put on the IO thread? Or do I need to make the Get method async
and await PassThroughTask
?
//Some controller class
[HttpGet]
public Task<ActionResult> Get()
{
PassThroughTask();
return Ok("passthrough");
}
public async Task PassThroughTask()
{
//Is this going to stop the IoBoundWork from going to the IO thread?
await SomeIoBoundWorkAsync();
}
public async Task SomeIoBoundWorkAsync(){ //await async io stuff}