ServiceProxy.ShouldRetry Method

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Checks a message security exception to determine if a service call should be attempted again.

Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

'Declaration
Protected Function ShouldRetry ( _
    messageSecurityException As MessageSecurityException, _
    retry As Nullable(Of Boolean) _
) As Nullable(Of Boolean)
protected Nullable<bool> ShouldRetry (
    MessageSecurityException messageSecurityException,
    Nullable<bool> retry
)

Parameters

  • retry
    Type: Nullable<Boolean>. null if this is the first time the check is performed; otherwise, this is the second time and a retry should not be performed.

Return Value

Type: Nullable<Boolean>
true if the service call should be tried again; otherwise, false or null.

Remarks

This particular type of exception occurs in Active Directory environments or sometimes when Internet Information Services (IIS) is reset.

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 Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

ServiceProxy Generic Class
ServiceProxy Members
Microsoft.Xrm.Sdk.Client Namespace

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.