| ControllerBaseDoInTransactionUnlessPostponedDueToPreviousDefaultResultT Method |
The method can postpone a SQL transaction implemented by action if the method returns a default number, eg. 0.
If the the action method throws a SQL transitent error, then the next call to action is also postponed.
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxprotected virtual void DoInTransactionUnlessPostponedDueToPreviousDefaultResult<T>(
ControllerBaseActionWithResult<T> action,
TimeSpan postponeDuration = null,
int silentRetries = 3
)
where T : Object, IEquatable<T>
Parameters
- action
- Type: Omada.OE.AppLogicControllerBaseActionWithResultT
If the action returns a default result (e.g. 0 if T is int) then it will not be called again for the specified duration.
- postponeDuration (Optional)
- Type: SystemTimeSpan
- silentRetries (Optional)
- Type: SystemInt32
Number of times we silently retry eat transient SQL errors when this method is called
Type Parameters
- T
-
Should normally be int.
See Also