TaskRetryOptions.FromRetryPolicy(RetryPolicy) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new TaskRetryOptions from the provided RetryPolicy.
public static Microsoft.DurableTask.TaskRetryOptions FromRetryPolicy (Microsoft.DurableTask.RetryPolicy policy);
static member FromRetryPolicy : Microsoft.DurableTask.RetryPolicy -> Microsoft.DurableTask.TaskRetryOptions
Public Shared Function FromRetryPolicy (policy As RetryPolicy) As TaskRetryOptions
Parameters
- policy
- RetryPolicy
The policy to convert from.
Returns
A TaskRetryOptions built from the policy.