SqlRetryLogicBase.RetryCondition(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Pre-retry validation for the sender state.
public:
virtual bool RetryCondition(System::Object ^ sender);
public virtual bool RetryCondition (object sender);
abstract member RetryCondition : obj -> bool
override this.RetryCondition : obj -> bool
Public Overridable Function RetryCondition (sender As Object) As Boolean
Parameters
- sender
- Object
The sender object.
Returns
Returns true
if the sender is authorized to retry the operation.
Remarks
[IMPORTANT!] Operations that are part of a Transaction are not safe to retry without specific knowledge of business logic. Due to this complexity, retry logic should be managed at the application level.
Note
The RetryCondition
is an extra condition that checks before executing the TransientPredicate
and the default condition always returns true.