Share via


CloudExtensions.SetRetryPolicy Method

Sets retry policy for the client.

Namespace: Microsoft.WindowsAzure.Common.Internals
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Usage

'Usage
Dim client As ServiceClient(Of T)
Dim retryPolicy As RetryPolicy

CloudExtensions.SetRetryPolicy(client, retryPolicy)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetRetryPolicy(Of T As ServiceClient(Of T)) ( _
    client As ServiceClient(Of T), _
    retryPolicy As RetryPolicy _
)
[ExtensionAttribute] 
public static void SetRetryPolicy<T> (
    ServiceClient<T> client,
    RetryPolicy retryPolicy
) where T : ServiceClient<T>
[ExtensionAttribute] 
public:
generic<typename T> where T : ServiceClient<T>
static void SetRetryPolicy (
    ServiceClient<T>^ client, 
    RetryPolicy^ retryPolicy
)

GenericParameters

  • T
    Service client type.

Parameters

  • client
    Service client.
  • retryPolicy
    Retry policy to set.

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

Reference

CloudExtensions Class
CloudExtensions Members
Microsoft.WindowsAzure.Common.Internals Namespace