Click or drag to resize

OAuthClientCoreExecuteWithRetryT Method

Executes func with retry specified in GetRetryWaitTimes, sleeping the thread in between.

Namespace: SanteDB.Client.OAuth
Assembly: SanteDB.Client (in SanteDB.Client.dll) Version: 3.0.2081-alpha+027e4605b77f83de5445cbcd55717223932d2452
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