RetryPolicy.ExecuteAction Method (Action<AsyncCallback>, Action<IAsyncResult>, Action, Action<Exception>)

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 asynchronous 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 void ExecuteAction(
	Action<AsyncCallback> beginAction,
	Action<IAsyncResult> endAction,
	Action successHandler,
	Action<Exception> faultHandler
)

Parameters

beginAction
Type: System.Action<AsyncCallback>
The begin method of the async pattern.
endAction
Type: System.Action<IAsyncResult>
The end method of the async pattern.
successHandler
Type: System.Action
The action to perform when the async operation is done.
faultHandler
Type: System.Action<Exception>
The fault handler delegate that will be triggered if the operation cannot be successfully invoked despite retry attempts.
Show: