Class AggregateRetryPolicy
An aggregate retry policy that combines multiple retry policies into one.
Implements
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: Unity.Purchasing.dll
Syntax
public class AggregateRetryPolicy : IRetryPolicy
Constructors
AggregateRetryPolicy(List<IRetryPolicy>)
Constructs an AggregateRetryPolicy with a list of retry policies.
Declaration
public AggregateRetryPolicy(List<IRetryPolicy> retryPolicies)
Parameters
Type | Name | Description |
---|---|---|
List<IRetryPolicy> | retryPolicies | The list of retry policies to aggregate. |
AggregateRetryPolicy(params IRetryPolicy[])
Constructs an AggregateRetryPolicy with a variable number of retry policies.
Declaration
public AggregateRetryPolicy(params IRetryPolicy[] retryPolicies)
Parameters
Type | Name | Description |
---|---|---|
IRetryPolicy[] | retryPolicies | The retry policies to aggregate. |
Methods
ShouldRetry(IRetryPolicyInformation)
Determines whether the operation should be retried based on the provided retry policy information.
Declaration
public Task<bool> ShouldRetry(IRetryPolicyInformation info)
Parameters
Type | Name | Description |
---|---|---|
IRetryPolicyInformation | info | The information about the retry policy. |
Returns
Type | Description |
---|---|
Task<bool> | True if the operation should be retried, otherwise false. |