 | OAuthClientCoreExecuteWithRetryT Method |
Executes
func with retry specified in
GetRetryWaitTimes, sleeping the thread in between.
Namespace: SanteDB.Client.OAuthAssembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
Syntaxprotected virtual T ExecuteWithRetry<T>(
Func<T> func,
Func<Exception, bool> errorCallback = null
)
where T : class
Protected Overridable Function ExecuteWithRetry(Of T As Class) (
func As Func(Of T),
Optional errorCallback As Func(Of Exception, Boolean) = Nothing
) As T
protected:
generic<typename T>
where T : ref class
virtual T ExecuteWithRetry(
Func<T>^ func,
Func<Exception^, bool>^ errorCallback = nullptr
)
abstract ExecuteWithRetry :
func : Func<'T> *
?errorCallback : Func<Exception, bool>
(* Defaults:
let _errorCallback = defaultArg errorCallback null
*)
-> 'T when 'T : not struct
override ExecuteWithRetry :
func : Func<'T> *
?errorCallback : Func<Exception, bool>
(* Defaults:
let _errorCallback = defaultArg errorCallback null
*)
-> 'T when 'T : not structParameters
- func FuncT
- The callback to execute and retry.
- errorCallback FuncException, Boolean (Optional)
- An optional callback for when an exception ocurrs. This will typically log an error of some kind.
Type Parameters
- T
- The result type of func.
Return Value
TThe result of the call or null.
See Also