The Azure Storage client was recently updated to version 2.0, and I haven't found any API that returns Task.
How can I use TPL with Table Storage? .. Blob or Queue?
For your reference the new API has an example here for Table Storage.
The Azure Storage client was recently updated to version 2.0, and I haven't found any API that returns Task.
How can I use TPL with Table Storage? .. Blob or Queue?
For your reference the new API has an example here for Table Storage.
查看https://github.com/WindowsAzure/azure-sdk-for-net/下的一些源代码,他们似乎还没有机会添加任务版本(似乎很奇怪,因为它特别提到了 target . NET 4),但这些操作似乎具有可用的 Begin* 和 End* 版本,因此您可以使用FromAsync 方法将每一对包装在一个任务中以便于使用。
不过,这似乎是一个奇怪的遗漏 AFAICT。