well, it depends. If you 'just' want to return the task
, that can be awaited outside this code, then no, you don't need to add it. However, you should await your async tasks, for unwanted side-effects. It depends per scenario.
Let's take a look at the following case:
public Task DownloadStream(Stream target)
{
return _downloader.ToStream(target);
}
would return a Task, so where I would want to download and handle it, I would then await it, i.e.:
public async Task DownloadAsync()
{
Using(var stream = new MemoryStream(){
await DownloadStream(stream); //<== here i NEED to wait and not block the UI
}
}
Hopefully you can interpretate it in your case.
Good luck!