RetryPolicy.ExecuteAction<TResult> Method (Func<TResult>)

Retired Content

This content and the technology described is outdated and is no longer being maintained. For more information, see Transient Fault Handling.

Repetitively executes the specified action while it satisfies the current retry policy.

Namespace: Microsoft.Practices.TransientFaultHandling
Assembly: Microsoft.Practices.TransientFaultHandling.Core (in Microsoft.Practices.TransientFaultHandling.Core.dll) Version: 5.0.1118.0 (5.0.1118.0)

public virtual TResult ExecuteAction<TResult>(
	Func<TResult> func
)

Parameters

func
Type: System.Func<TResult>
A delegate representing the executable action which returns the result of type R.

TResult
The type of result expected from the executable action.

Return Value

The result from the action.
Show: