2012-09-24 26 views
1

我得到這個錯誤:「RetryPolicy」不明確的引用

'RetryPolicy' is an ambiguous reference between 'Microsoft.Practices.TransientFaultHandling.RetryPolicy' and 'Microsoft.WindowsAzure.StorageClient.RetryPolicy' 

我不知道的是冗餘,並StorageClient現在包括重試的能力?

+0

「StorageClient現在是否包含...」現在,自2008年以來,IIRC,儘管我認爲它們在2009年初進行了改進。:-) – smarx

回答

1

是Windows Azure存儲客戶端庫確實包含內置於其中的重試策略特定功能,並可根據需要通過引用進行使用。 Storage Client Library中的RetryPolicies用於允許用戶自定義發生異常時的重試行爲。

參考Windows Azure存儲,有關重試策略的詳細信息,請參閱here,其中包含多個源案例和代碼示例。