does anyone know a different method not using task async i want to use void
public async Task Download(string remoteFilePath, string localFilePath)
{
DropboxClient client2 = new DropboxClient("token");
remoteFilePath = "img2.jpg";
localFilePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
using (var response = await client2.Files.DownloadAsync(remoteFilePath))
{
using (var fileStream = File.Create(localFilePath))
{
response.GetContentAsStreamAsync().Result.CopyTo(fileStream);
}
}
}