ServiceProxy<TService>.ShouldRetry(MessageSecurityException, Nullable<Boolean>) ServiceProxy<TService>.ShouldRetry(MessageSecurityException, Nullable<Boolean>) ServiceProxy<TService>.ShouldRetry(MessageSecurityException, Nullable<Boolean>) Method

Definition

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

protected:
 Nullable<bool> ShouldRetry(System::ServiceModel::Security::MessageSecurityException ^ messageSecurityException, Nullable<bool> retry);
protected Nullable<bool> ShouldRetry (System.ServiceModel.Security.MessageSecurityException messageSecurityException, Nullable<bool> retry);
member this.ShouldRetry : System.ServiceModel.Security.MessageSecurityException * Nullable<bool> -> Nullable<bool>

Parameters

retry
Nullable<Boolean>

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.

Returns

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.

Applies to