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
- beginAction
Type: System.Action<AsyncCallback>
The begin method of the async pattern.
- endAction
Type: System.Func<IAsyncResult, TResult>
The end method of the async pattern.
- 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.