LinearRetry.Evaluate Method

Windows Runtime Azure Storage Client Library

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

Namespace: Microsoft.WindowsAzure.Storage.RetryPolicies
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As LinearRetry
Dim retryContext As RetryContext
Dim operationContext As OperationContext
Dim returnValue As RetryInfo

returnValue = instance.Evaluate(retryContext, operationContext)

Syntax

Visual Basic
Public Function Evaluate ( _
	retryContext As RetryContext, _
	operationContext As OperationContext _
) As RetryInfo
C#
public RetryInfo Evaluate (
	RetryContext retryContext,
	OperationContext operationContext
)
C++
public:
virtual RetryInfo^ Evaluate (
	RetryContext^ retryContext, 
	OperationContext^ operationContext
) sealed
J#
public final RetryInfo Evaluate (
	RetryContext retryContext, 
	OperationContext operationContext
)
JScript
public final function Evaluate (
	retryContext : RetryContext, 
	operationContext : OperationContext
) : RetryInfo

Parameters

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

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

Return Value

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also