Share via


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

 

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

Namespace:   Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Syntax

public virtual TResult ExecuteAction<TResult>(
    Func<TResult> func
)
public:
generic<typename TResult>
virtual TResult ExecuteAction(
    Func<TResult>^ func
)
abstract ExecuteAction<'TResult> : 
        func:Func<'TResult> -> 'TResult
override ExecuteAction<'TResult> : 
        func:Func<'TResult> -> 'TResult
Public Overridable Function ExecuteAction(Of TResult) (
    func As Func(Of TResult)
) As TResult

Parameters

  • func
    Type: System.Func<TResult>

    A delegate that represents the executable action that returns the result of type TResult.

Return Value

Type: TResult

The result from the action.

Type Parameters

  • TResult
    The type of result expected from the executable action.

See Also

ExecuteAction Overload
RetryPolicy Class
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace

Return to top