如何使用第三方物流在Azure中StorageClient 2.0和更新新的API? [英] How can I use TPL with the new APIs in Azure StorageClient 2.0 and newer?

查看:259
本文介绍了如何使用第三方物流在Azure中StorageClient 2.0和更新新的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Azure存储客户端最近更新到2.0版本,我还没有找到,返回任务的API。

The Azure Storage client was recently updated to version 2.0, and I haven't found any API that returns Task.

如何使用第三方物流与表的存储? .. BLOB或队列?

How can I use TPL with Table Storage? .. Blob or Queue?

有关参考新的API有一个<一个href=\"http://blogs.msdn.com/b/dmetzgar/archive/2012/11/02/upgrading-table-storage-$c$c-to-azure-sdk-1-8.aspx\"相对=nofollow>例如这里表的存储。

For your reference the new API has an example here for Table Storage.

推荐答案

通过一些源展望下的 https://github.com/WindowsAzure/azure-sdk-for-net/ 看来,他们已经没有机会来添加任务版本,但(似乎很奇怪,因为它特别提到针对.NET 4中),但操作似乎有开始*和结束*版本,所以你可以使用的的FromAsync方法来包装任务每对,方便食用。

Looking through some of the source under https://github.com/WindowsAzure/azure-sdk-for-net/ it appears that they haven't had a chance to add the Task versions yet (seems odd since it specifically mentions targeting .NET 4), but the operations appear to have the Begin* and End* versions available, so you could use the FromAsync method to wrap each pair in a task for easier consumption.

好象是一个奇怪的遗漏AFAICT,虽然。

Does seem like an odd omission AFAICT, though.

这篇关于如何使用第三方物流在Azure中StorageClient 2.0和更新新的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆