您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

IExtendedRetryPolicy.Evaluate(RetryContext, OperationContext) Method

Definition

Determines whether the operation should be retried and the interval until the next retry.

public Microsoft.Azure.Cosmos.Table.RetryInfo Evaluate (Microsoft.Azure.Cosmos.Table.RetryContext retryContext, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
abstract member Evaluate : Microsoft.Azure.Cosmos.Table.RetryContext * Microsoft.Azure.Cosmos.Table.OperationContext -> Microsoft.Azure.Cosmos.Table.RetryInfo
Public Function Evaluate (retryContext As RetryContext, operationContext As OperationContext) As RetryInfo

Parameters

retryContext
RetryContext

A RetryContext object that indicates the number of retries, the results of the last request, and whether the next retry should happen in the primary or secondary location, and specifies the location mode.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

RetryInfo

A RetryInfo object that indicates the location mode, and whether the next retry should happen in the primary or secondary location. If null, the operation will not be retried.

Applies to