RetryPolicy.ExecuteAction<TResult> Method (Action<AsyncCallback>, Func<IAsyncResult, TResult>, Action<TResult>, 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)

Syntax

public virtual void ExecuteAction<TResult>(
    Action<AsyncCallback> beginAction,
    Func<IAsyncResult, TResult> endAction,
    Action<TResult> successHandler,
    Action<Exception> faultHandler
)
'Declaration
Public Overridable Sub ExecuteAction(Of TResult) ( _
    beginAction As Action(Of AsyncCallback), _
    endAction As Func(Of IAsyncResult, TResult), _
    successHandler As Action(Of TResult), _
    faultHandler As Action(Of Exception) _
)
public:
generic<typename TResult>
virtual void ExecuteAction(
    Action<AsyncCallback^>^ beginAction, 
    Func<IAsyncResult^, TResult>^ endAction, 
    Action<TResult>^ successHandler, 
    Action<Exception^>^ faultHandler
)

Parameters

  • successHandler
    Type: System.Action<TResult>
    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.

Type Parameters

  • TResult
    The type of the object returned by the async operation.

See Also

RetryPolicy Class

ExecuteAction Overload

Microsoft.Practices.TransientFaultHandling Namespace