 | OAuthClientAuthenticatorExecuteWithRetryT Method |
Executes func with retry specified in [!:GetRetryWaitTimes], sleeping the thread in between.
Namespace: SanteDB.Messaging.FHIR.AuthenticatorAssembly: SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 3.0.2081-alpha+4e2291b954f20d29cba15591683155ca851b26eb
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