Click or drag to resize

OAuthClientAuthenticatorExecuteWithRetryT Method

Executes func with retry specified in [!:GetRetryWaitTimes], sleeping the thread in between.

Namespace: SanteDB.Messaging.FHIR.Authenticator
Assembly: SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 3.0.2081-alpha+4e2291b954f20d29cba15591683155ca851b26eb
Syntax
protected virtual T ExecuteWithRetry<T>(
	Func<T> func,
	Func<Exception, bool> errorCallback = null
)
where T : class

Parameters

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

T
The result of the call or null.
See Also