        /// <returns>A <see cref="Task"/> that completes when the download has finished.</returns>
        public async static Task DownloadFileAsync<T>(this IMobileServiceTable<T> table, MobileServiceFile file, string targetPath)
        {
            using (IO.Stream stream = await File.CreateAsync(targetPath))
            {
                await table.DownloadFileToStreamAsync(file, stream);
            }
        }
    }
}
