Polly
Transient exception handling policies that can be applied to asynchronous delegates
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Constructs a new instance of a derived type with the passed .
Predicates indicating which exceptions the policy should handle.
Constructs a new instance of a derived type with the passed .
A specifying which exceptions the policy should handle.
Executes the specified asynchronous action within the policy.
The action to perform.
Executes the specified asynchronous action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Executes the specified asynchronous action within the policy.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
contextData
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The value returned by the action
contextData
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
contextData
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Defines the implementation of a policy for async executions with no return value.
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
Whether async continuations should continue on a captured context.
A representing the result of the execution.
Defines the implementation of a policy for async executions returning .
The type returned by asynchronous executions through the implementation.
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
Whether async continuations should continue on a captured context.
A representing the result of the execution.
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
Wraps the specified inner policy.
The inner policy.
The return type of delegates which may be executed through the policy.
PolicyWrap.PolicyWrap.
Transient exception handling policies that can be applied to asynchronous delegates
The return type of delegates which may be executed through the policy.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Defines the implementation of a policy for async executions returning .
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
Whether async continuations should continue on a captured context.
A representing the result of the execution.
Constructs a new instance of a derived type with the passed and .
Predicates indicating which exceptions the policy should handle.
Predicates indicating which results the policy should handle.
Constructs a new instance of a derived type with the passed .
A indicating which exceptions and results the policy should handle.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The value returned by the action
contextData
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
contextData
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
A bulkhead-isolation policy which can be applied to delegates.
Gets the number of slots currently available for executing actions through the bulkhead.
Gets the number of slots currently available for queuing actions for execution through the bulkhead.
A bulkhead-isolation policy which can be applied to delegates.
The return type of delegates which may be executed through the policy.
Gets the number of slots currently available for executing actions through the bulkhead.
Gets the number of slots currently available for queuing actions for execution through the bulkhead.
A bulkhead-isolation policy which can be applied to delegates.
Gets the number of slots currently available for executing actions through the bulkhead.
Gets the number of slots currently available for queuing actions for execution through the bulkhead.
Disposes of the , allowing it to dispose its internal resources.
Only call on a after all actions executed through the policy have completed. If actions are still executing through the policy when is called, an may be thrown on the actions' threads when those actions complete.
A bulkhead-isolation policy which can be applied to delegates returning a value of type .
Gets the number of slots currently available for executing actions through the bulkhead.
Gets the number of slots currently available for queuing actions for execution through the bulkhead.
Disposes of the , allowing it to dispose its internal resources.
Only call on a after all actions executed through the policy have completed. If actions are still executing through the policy when is called, an may be thrown on the actions' threads when those actions complete.
Exception thrown when a bulkhead's semaphore and queue are full.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Defines properties and methods common to all bulkhead policies.
Gets the number of slots currently available for executing actions through the bulkhead.
Gets the number of slots currently available for queuing actions for execution through the bulkhead.
Defines properties and methods common to all bulkhead policies generic-typed for executions returning results of type .
Transient exception handling policies that can be applied to synchronous delegates
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
An action to call asynchronously, if the bulkhead rejects execution due to oversubscription.
The policy instance.
maxParallelization;Value must be greater than zero.
onBulkheadRejectedAsync
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
An action to call asynchronously, if the bulkhead rejects execution due to oversubscription.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
onBulkheadRejectedAsync
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
An action to call asynchronously, if the bulkhead rejects execution due to oversubscription.
maxParallelization;Value must be greater than zero.
onBulkheadRejectedAsync
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
onBulkheadRejectedAsync
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
An action to call asynchronously, if the bulkhead rejects execution due to oversubscription.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
onBulkheadRejectedAsync
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
maxParallelization;Value must be greater than zero.
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
An action to call, if the bulkhead rejects execution due to oversubscription.
maxParallelization;Value must be greater than zero.
onBulkheadRejected
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
An action to call, if the bulkhead rejects execution due to oversubscription.
The policy instance.
maxParallelization;Value must be greater than zero.
maxParallelization;Value must be greater than zero.
onBulkheadRejected
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
maxParallelization;Value must be greater than zero.
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the action is not executed and a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
An action to call, if the bulkhead rejects execution due to oversubscription.
maxParallelization;Value must be greater than zero.
onBulkheadRejected
The policy instance.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
Builds a bulkhead isolation , which limits the maximum concurrency of actions executed through the policy. Imposing a maximum concurrency limits the potential of governed actions, when faulting, to bring down the system.
When an execution would cause the number of actions executing concurrently through the policy to exceed , the policy allows a further executions to queue, waiting for a concurrent execution slot. When an execution would cause the number of queuing actions to exceed , a is thrown.
The maximum number of concurrent actions that may be executing through the policy.
The maximum number of actions that may be queuing, waiting for an execution slot.
An action to call, if the bulkhead rejects execution due to oversubscription.
The policy instance.
maxParallelization;Value must be greater than zero.
maxQueuingActions;Value must be greater than or equal to zero.
onBulkheadRejected
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key specified by .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key specified by
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key.
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key.
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds an that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a result.
Before executing a delegate returning a result, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key specified by .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call if an exception is thrown when attempting to get a value from or put a value into the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key.
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
Duration (ttl) for which to cache values.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a that will function like a result cache for delegate executions returning a .
Before executing a delegate, checks whether the holds a value for the cache key determined by applying the to the execution .
If the provides a value from cache, returns that value and does not execute the governed delegate. If the does not provide a value, executes the governed delegate, stores the value with the , then returns the value.
The cache provider.
A strategy for specifying ttl for values to be cached.
The cache key strategy.
Delegate to call on a cache hit, when value is returned from cache.
Delegate to call on a cache miss.
Delegate to call on cache put.
Delegate to call if an exception is thrown when attempting to get a value from the cache, passing the execution context, the cache key, and the exception.
Delegate to call if an exception is thrown when attempting to put a value in the cache, passing the execution context, the cache key, and the exception.
The policy instance.
cacheProvider
ttlStrategy
cacheKeyStrategy
onCacheGet
onCacheMiss
onCachePut
onCacheGetError
onCachePutError
Builds a NoOp that will execute without any custom behavior.
The policy instance.
Builds a NoOp that will execute without any custom behavior.
The type of return values this policy will handle.
The policy instance.
Builds a NoOp that will execute without any custom behavior.
The policy instance.
Builds a NoOp that will execute without any custom behavior.
The type of return values this policy will handle.
The policy instance.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Constructs a new instance of a derived type with the passed .
Predicates indicating which exceptions the policy should handle.
Constructs a new instance of a derived type with the passed .
A specifying which exceptions the policy should handle.
Executes the specified action within the policy.
The action to perform.
Executes the specified action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
Executes the specified action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Executes the specified action within the policy
Executes the specified action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
contextData
Executes the specified action within the policy.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
Executes the specified action within the policy and returns the Result.
The type of the Result.
The action to perform.
The value returned by the action
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result
The type of the t result.
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
Specifies the type of exception that this policy can handle.
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle with additional filters on this exception type.
The type of the exception.
The exception predicate to filter the type of exception this policy can handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle, with additional filters on this exception type, if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of return result that this policy can handle with additional filters on the result.
The type of return values this policy will handle.
The predicate to filter results this policy will handle.
The PolicyBuilder instance.
Specifies the type of return result that this policy can handle, and a result value which the policy will handle.
The type of return values this policy will handle.
The TResult value this policy will handle.
This policy filter matches the value returned using .Equals(), ideally suited for value types such as int and enum. To match characteristics of class return types, consider the overload taking a result predicate.
The PolicyBuilder instance.
Defines the implementation of a policy for sync executions with no return value.
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
Defines the implementation of a policy for synchronous executions returning .
The type returned by synchronous executions through the implementation.
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
A result of the execution.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
An (optional) factory to express the recommended retry-after time back to the caller, when an operation is rate-limited.
If null, a with property will be thrown to indicate rate-limiting.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given,
with a maximum burst size of
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
An (optional) factory to use to express retry-after back to the caller, when an operation is rate-limited.
If null, a with property will be thrown to indicate rate-limiting.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
An (optional) factory to express the recommended retry-after time back to the caller, when an operation is rate-limited.
If null, a with property will be thrown to indicate rate-limiting.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given.
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
The policy instance.
Builds a RateLimit that will rate-limit executions to per the timespan given,
with a maximum burst size of
The type of return values this policy will handle.
The number of executions (call it N) permitted per timespan.
How often N executions are permitted.
The maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
This equates to the bucket-capacity of a token-bucket implementation.
An (optional) factory to use to express retry-after back to the caller, when an operation is rate-limited.
If null, a with property will be thrown to indicate rate-limiting.
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
seconds;Value must be greater than zero.
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
The policy instance.
seconds;Value must be greater than zero.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
seconds;Value must be greater than zero.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
seconds;Value must be greater than zero.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
seconds;Value must be greater than zero.
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
seconds;Value must be greater than zero.
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The timeout strategy.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The timeout strategy.
The policy instance.
timeout;Value must be greater than zero.
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
timeoutProvider
The policy instance.
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds an that will wait asynchronously for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeoutAsync
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
seconds;Value must be greater than zero.
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
The policy instance.
seconds;Value must be greater than zero.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The number of seconds after which to timeout.
seconds;Value must be greater than zero.
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The number of seconds after which to timeout.
The timeout strategy.
The policy instance.
seconds;Value must be greater than zero.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The number of seconds after which to timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The number of seconds after which to timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
seconds;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The timeout.
The timeout strategy.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The timeout.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be a positive TimeSpan (or Timeout.InfiniteTimeSpan to indicate no timeout)
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
The timeout.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeout;Value must be greater than zero.
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
timeoutProvider
The policy instance.
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
The policy instance.
timeoutProvider
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
A function to provide the timeout for this execution.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, and a capturing the abandoned, timed-out action.
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Builds a that will wait for a delegate to complete for a specified period of time. A will be thrown if the delegate does not complete within the configured timeout.
The return type of delegates which may be executed through the policy.
A function to provide the timeout for this execution.
The timeout strategy.
An action to call on timeout, passing the execution context, the timeout applied, the capturing the abandoned, timed-out action, and the captured .
The Task parameter will be null if the executed action responded cooperatively to cancellation before the policy timed it out.
The policy instance.
timeoutProvider
onTimeout
Creates a of the given policies.
The policies to place in the wrap, outermost (at left) to innermost (at right).
The PolicyWrap.
The enumerable of policies to form the wrap must contain at least two policies.
Creates a of the given policies governing delegates returning values of type .
The policies to place in the wrap, outermost (at left) to innermost (at right).
The return type of delegates which may be executed through the policy.
The PolicyWrap.
The enumerable of policies to form the wrap must contain at least two policies.
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
Wraps the specified inner policy.
The inner policy.
The return type of delegates which may be executed through the policy.
PolicyWrap.PolicyWrap.
Creates a of the given policies.
The policies to place in the wrap, outermost (at left) to innermost (at right).
The PolicyWrap.
The enumerable of policies to form the wrap must contain at least two policies.
Creates a of the given policies governing delegates returning values of type .
The policies to place in the wrap, outermost (at left) to innermost (at right).
The return type of delegates which may be executed through the policy.
The PolicyWrap.
The enumerable of policies to form the wrap must contain at least two policies.
Defines a ttl strategy which will cache items until the specified point-in-time.
Initializes a new instance of the class.
The UTC point in time until which to consider the cache item valid.
A cache policy that can be applied to the results of delegate executions.
A cache policy that can be applied to the results of delegate executions.
The return type of delegates which may be executed through the policy.
Provides a strongly-typed wrapper over a non-generic CacheProviderAsync.
The type of the objects in the cache.
Defines an which serializes objects of any type in and out of an underlying cache which caches as type . For use with asynchronous .
The type of serialized objects to be placed in the cache.
Initializes a new instance of the class.
The wrapped cache provider.
The serializer.
wrappedCacheProvider
serializer
Gets a value from the cache asynchronously.
The cache key.
The cancellation token.
Whether async calls should continue on a captured synchronization context.
A promising as Result a tuple whose first element is a value indicating whether
the key was found in the cache, and whose second element is the value from the cache (null if not found).
Puts the specified value in the cache asynchronously.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
The cancellation token.
Whether async calls should continue on a captured synchronization context.
A which completes when the value has been cached.
Defines an which serializes objects of type in and out of an underlying cache which caches as type . For use with asynchronous .
The return type of delegates which may be executed through the policy.
The type of serialized objects to be placed in the cache.
Initializes a new instance of the class.
The wrapped cache provider.
The serializer.
wrappedCacheProvider
serializer
Gets a value from the cache asynchronously.
The cache key.
The cancellation token.
Whether async calls should continue on a captured synchronization context.
A promising as Result a tuple whose first element is a value indicating whether
the key was found in the cache, and whose second element is the value from the cache (default(TResult) if not found).
Puts the specified value in the cache asynchronously.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
The cancellation token.
Whether async calls should continue on a captured synchronization context.
A which completes when the value has been cached.
A cache policy that can be applied to the results of delegate executions.
A cache policy that can be applied to the results of delegate executions.
Class that provides helper methods for configuring CacheProviders.
Provides a strongly -typed version of the supplied
The type the returned will handle.
The non-generic cache provider to wrap.
ISyncCacheProvider{TCacheFormat}.
Provides a strongly -typed version of the supplied
The type the returned will handle.
The non-generic cache provider to wrap.
IAsyncCacheProvider{TCacheFormat}.
Wraps the around the so that delegate return values of any type can be stored in the cache as type .
The type of serialized objects to be placed in the cache.
The cache provider.
A serializer which can serialize/deserialize all types to/from .
SerializingCacheProvider<TResult, TSerialized>.
Wraps the around the so that delegate return values of type can be stored in the cache as type .
The return type of delegates which may be executed through the policy.
The type of serialized objects to be placed in the cache.
The cache provider.
The serializer.
SerializingCacheProvider<TResult, TSerialized>.
Wraps the around the asynchronous so that delegate return values of any type can be stored in the cache as type .
The type of serialized objects to be placed in the cache.
The cache provider.
A serializer which can serialize/deserialize all types to/from .
SerializingCacheProvider<TResult, TSerialized>.
Wraps the around the asynchronous so that delegate return values of type can be stored in the cache as type .
The return type of delegates which may be executed through the policy.
The type of serialized objects to be placed in the cache.
The cache provider.
The serializer.
SerializingCacheProvider<TResult, TSerialized>.
Defines a ttl strategy which will cache items for a TimeSpan which may be influenced by data in the execution context.
The key on the execution to use for storing the Ttl TimeSpan for which to cache.
The key on the execution to use for storing whether the Ttl should be treated as sliding expiration.
If no value is provided for this key, a ttl will not be treated as sliding expiration.
Gets the TimeSpan for which to keep an item about to be cached, which may be influenced by data in the execution context.
The execution context.
The execution result.
TimeSpan.
The default cache key strategy for . Returns the property .
Gets the cache key from the given execution context.
The execution context.
The cache key
Gets an instance of the .
Provides a strongly-typed wrapper over a non-generic CacheProvider.
The type of the objects in the cache.
Represents a strongly-typed wrapper of a non-generic strategy.
Gets a TTL for a cacheable item, given the current execution context and result.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Defines methods for classes providing asynchronous cache functionality for Polly s.
Gets a value from the cache asynchronously.
The cache key.
The cancellation token.
Whether async calls should continue on a captured synchronization context. Note: if the underlying cache's async API does not support controlling whether to continue on a captured context, async Policy executions with continueOnCapturedContext == true cannot be guaranteed to remain on the captured context.
A promising as Result a tuple whose first element is a value indicating whether
the key was found in the cache, and whose second element is the value from the cache (null if not found).
Puts the specified value in the cache asynchronously.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
The cancellation token.
Whether async calls should continue on a captured synchronization context.Note: if the underlying cache's async API does not support controlling whether to continue on a captured context, async Policy executions with continueOnCapturedContext == true cannot be guaranteed to remain on the captured context.
A which completes when the value has been cached.
Defines methods for classes providing asynchronous cache functionality for Polly s.
Gets a value from the cache asynchronously.
The cache key.
The cancellation token.
Whether async calls should continue on a captured synchronization context. Note: if the underlying cache's async API does not support controlling whether to continue on a captured context, async Policy executions with continueOnCapturedContext == true cannot be guaranteed to remain on the captured context.
A promising as Result a tuple whose first element is a value indicating whether
the key was found in the cache, and whose second element is the value from the cache (default(TResult) if not found).
Puts the specified value in the cache asynchronously.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
The cancellation token.
Whether async calls should continue on a captured synchronization context.Note: if the underlying cache's async API does not support controlling whether to continue on a captured context, async Policy executions with continueOnCapturedContext == true cannot be guaranteed to remain on the captured context.
A which completes when the value has been cached.
Defines operations for serializing and deserializing values being placed in caches by instances.
The type of objects that this serializer can serialize.
The type of objects after serialization.
Serializes the specified object.
The object to serialize.
The serialized object
Deserializes the specified object.
The object to deserialize.
The deserialized object
Defines how a should get a string cache key from an execution
Gets the cache key from the given execution context.
The execution context.
The cache key
Defines properties and methods common to all Cache policies.
Defines properties and methods common to all Cache policies generic-typed for executions returning results of type .
Defines methods for classes providing synchronous cache functionality for Polly s.
Gets a value from cache.
The cache key.
A tuple whose first element is a value indicating whether the key was found in the cache,
and whose second element is the value from the cache (null if not found).
Puts the specified value in the cache.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
Defines methods for classes providing synchronous cache functionality for Polly s.
Gets a value from cache.
The cache key.
A tuple whose first element is a value indicating whether the key was found in the cache,
and whose second element is the value from the cache (default(TResult) if not found).
Puts the specified value in the cache.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
Defines a strategy for providing time-to-live durations for cacheable results.
Defines a strategy for providing time-to-live durations for cacheable results.
Gets a TTL for a cacheable item, given the current execution context.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Represents an expiring at an absolute time, not with sliding expiration.
The absolute expiration time for cache items, represented by this strategy.
Constructs a new instance of the strategy.
The absolute expiration time for cache items, represented by this strategy.
Gets a TTL for a cacheable item, given the current execution context.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Defines a ttl strategy which will cache items for the specified time.
Initializes a new instance of the class.
The timespan for which to consider the cache item valid.
Gets a TTL for a cacheable item, given the current execution context.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Defines a ttl strategy which can calculate a duration to cache items dynamically based on the execution context and result of the execution.
The type of results that the ttl calculation function will take as an input parameter.
Constructs a new instance of the ttl strategy, with a func calculating based on the value to cache.
The function to calculate the TTL for which cache items should be considered valid.
Constructs a new instance of the ttl strategy, with a func calculating based on the execution and value to cache.
The function to calculate the TTL for which cache items should be considered valid.
Gets a TTL for the cacheable item.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Defines an which serializes objects of any type in and out of an underlying cache which caches as type . For use with synchronous .
The type of serialized objects to be placed in the cache.
Initializes a new instance of the class.
The wrapped cache provider.
The serializer.
wrappedCacheProvider
serializer
Gets a value from the cache.
The cache key.
A tuple whose first element is a value indicating whether the key was found in the cache,
and whose second element is the value from the cache (null if not found).
Puts the specified value in the cache.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
Defines an which serializes objects of type in and out of an underlying cache which caches as type . For use with synchronous .
The return type of delegates which may be executed through the policy.
The type of serialized objects to be placed in the cache.
Initializes a new instance of the class.
The wrapped cache provider.
The serializer.
wrappedCacheProvider
serializer
Gets a value from the cache.
The cache key.
A tuple whose first element is a value indicating whether the key was found in the cache,
and whose second element is the value from the cache (default(TResult) if not found).
Puts the specified value in the cache.
The cache key.
The value to put into the cache.
The time-to-live for the cache entry.
Defines a ttl strategy which will cache items with a sliding ttl.
Constructs a new instance of the ttl strategy.
The sliding timespan for which cache items should be considered valid.
Gets a TTL for the cacheable item.
The execution context.
The execution result.
A representing the remaining Ttl of the cached item.
Represents a time-to-live for a given cache item.
The timespan for which this cache-item remains valid.
Whether this should be considered as sliding expiration: that is, the cache item should be considered valid for a further period of duration each time the cache item is retrieved.
Creates a new struct.
The timespan for which this cache-item remains valid.
Will be considered as not denoting sliding expiration.
Creates a new struct.
The timespan for which this cache-item remains valid
Whether this should be considered as sliding expiration.
Class that provides helper methods for configuring TtlStrategies.
Provides a strongly -typed version of the supplied
The type the returned will handle.
The non-generic ttl strategy to wrap.
ITtlStrategy{TCacheFormat}.
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure).
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
(see "Release It!" by Michael T. Nygard fi)
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
(see "Release It!" by Michael T. Nygard fi)
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure).
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
(see "Release It!" by Michael T. Nygard fi)
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The return type of delegates which may be executed through the policy.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
(see "Release It!" by Michael T. Nygard fi)
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The return type of delegates which may be executed through the policy.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
(see "Release It!" by Michael T. Nygard fi)
A circuit-breaker policy that can be applied to async delegates.
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed.
Isolates (opens) the circuit manually, and holds it in this state until a call to is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
A circuit-breaker policy that can be applied to async delegates.
The return type of delegates which may be executed through the policy.
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed.
Gets the last result returned from a user delegate which the circuit-breaker handled.
This will be default() if no results have been handled by the circuit-breaker since the circuit last closed, or if the last event handled by the circuit was an exception.
Isolates (opens) the circuit manually, and holds it in this state until a call to is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
Exception thrown when a circuit is broken.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message that describes the error.
Initializes a new instance of the class.
The message that describes the error.
The inner exception.
Exception thrown when a circuit is broken.
The type of returned results being handled by the policy.
Initializes a new instance of the class.
The result which caused the circuit to break.
Initializes a new instance of the class.
The message that describes the error.
The result which caused the circuit to break.
The result value which was considered a handled fault, by the policy.
A circuit-breaker policy that can be applied to delegates.
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed.
Isolates (opens) the circuit manually, and holds it in this state until a call to is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
A circuit-breaker policy that can be applied to delegates returning a value of type .
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed, or if the last event handled by the circuit was a handled value.
Gets the last result returned from a user delegate which the circuit-breaker handled.
This will be default() if no results have been handled by the circuit-breaker since the circuit last closed, or if the last event handled by the circuit was an exception.
Isolates (opens) the circuit manually, and holds it in this state until a call to is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
Describes the possible states the circuit of a CircuitBreaker may be in.
Closed - When the circuit is closed. Execution of actions is allowed.
Open - When the automated controller has opened the circuit (typically due to some failure threshold being exceeded by recent actions). Execution of actions is blocked.
Half-open - When the circuit is half-open, it is recovering from an open state. The duration of break of the preceding open state has typically passed. In the half-open state, actions may be executed, but the results of these actions may be treated with criteria different to normal operation, to decide if the circuit has recovered sufficiently to be placed back in to the closed state, or if continuing failures mean the circuit should revert to open perhaps more quickly than in normal operation.
Isolated - When the circuit has been placed into a fixed open state by a call to . This isolates the circuit manually, blocking execution of all actions until a call to is made.
Defines properties and methods common to all circuit-breaker policies.
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed.
Isolates (opens) the circuit manually, and holds it in this state until a call to is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
Defines properties and methods common to all circuit-breaker policies generic-typed for executions returning results of type .
Gets the last result returned from a user delegate which the circuit-breaker handled.
This will be default() if no results have been handled by the circuit-breaker since the circuit last closed, or if the last event handled by the circuit was an exception.
Exception thrown when a circuit is isolated (held open) by manual override.
Initializes a new instance of the class.
The message that describes the error.
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The policy instance.
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception or result exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if, within any timeslice of duration , the proportion of actions resulting in a handled exception exceeds , provided also that the number of actions through the circuit in the timeslice is at least .
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The failure threshold at which the circuit will break (a number between 0 and 1; eg 0.5 represents breaking if 50% or more of actions result in a handled failure.
The duration of the timeslice over which failure ratios are assessed.
The minimum throughput: this many actions or more must pass through the circuit in the timeslice, for statistics to be considered significant and the circuit-breaker to come into action.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
failureThreshold;Value must be greater than zero
failureThreshold;Value must be less than or equal to one
samplingDuration;Value must be equal to or greater than the minimum resolution of the CircuitBreaker timer
minimumThroughput;Value must be greater than one
durationOfBreak;Value must be greater than zero
onBreak
onReset
onHalfOpen
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions that are handled by this policy are raised consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception
that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break
again for another ; if no exception is thrown, the circuit will reset.
The policy builder.
The number of exceptions that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
exceptionsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Fluent API for defining a Circuit Breaker .
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Builds a that will function like a Circuit Breaker.
The circuit will break if
exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the . Any attempt to execute this policy
while the circuit is broken, will immediately throw a containing the exception or result
that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break
again for another ; if no exception or handled result is encountered, the circuit will reset.
The policy builder.
The number of exceptions or handled results that are allowed before opening the circuit.
The duration the circuit will stay open before resetting.
The action to call when the circuit transitions to an state.
The action to call when the circuit resets to a state.
The action to call when the circuit transitions to state, ready to try action executions again.
The policy instance.
(see "Release It!" by Michael T. Nygard fi)
handledEventsAllowedBeforeBreaking;Value must be greater than zero.
onBreak
onReset
onHalfOpen
Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added.
Do not re-use an instance of across more than one call through .Execute(...) or .ExecuteAsync(...).
Context that carries with a single execution through a Policy. Commonly-used properties are directly on the class. Backed by a dictionary of string key / object value pairs, to which user-defined values may be added.
Do not re-use an instance of across more than one execution.
Initializes a new instance of the class, with the specified .
The operation key.
Initializes a new instance of the class.
When execution is through a , identifies the PolicyWrap executing the current delegate by returning the of the outermost layer in the PolicyWrap; otherwise, null.
The of the policy instance executing the current delegate.
A key unique to the call site of the current execution.
Policy instances are commonly reused across multiple call sites. Set an OperationKey so that logging and metrics can distinguish usages of policy instances at different call sites.
The value is set by using the constructor taking an operationKey parameter.
A Guid guaranteed to be unique to each execution.
Acts as a correlation id so that events specific to a single execution can be identified in logging and telemetry.
Initializes a new instance of the class, with the specified and the supplied .
The operation key.
The context data.
The captured outcome of executing an individual Func<TResult>
Create an instance of representing an execution which returned
The result.
Create an instance of representing an execution which threw
The exception.
The result of executing the delegate. Will be default(TResult) if an exception was thrown.
Any exception thrown while executing the delegate. Will be null if policy executed without exception.
A predicate that can be run against a passed .
The passed exception, against which to evaluate the predicate.
A matched ; or null, if an exception was not matched. ExceptionPredicate implementations may return the passed Exception , indicating that it matched the predicate. They may also return inner exceptions of the passed Exception , to indicate that the returned inner exception matched the predicate.
A collection of predicates used to define whether a policy handles a given .
Assess whether the passed , , matches any of the predicates.
If the .HandleInner() method was used when configuring the policy, predicates may test whether any inner exceptions of match and may return a matching inner exception.
The exception to assess against the predicates.
The first exception to match a predicate; or null, if no match is found.
Specifies that no Exception-handling filters are applied or are required.
Exception thrown when a policy rejects execution of a delegate.
More specific exceptions which derive from this type, are generally thrown.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message that describes the error.
Initializes a new instance of the class.
The message that describes the error.
The inner exception.
A fallback policy that can be applied to asynchronous delegates.
A fallback policy that can be applied to delegates.
The return type of delegates which may be executed through the policy.
A fallback policy that can be applied to delegates.
A fallback policy that can be applied to delegates returning a value of type .
Defines properties and methods common to all Fallback policies.
Defines properties and methods common to all Fallback policies generic-typed for executions returning results of type .
Fluent API for defining a Fallback .
Builds an which provides a fallback action if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception, asynchronously calls .
The policy builder.
The fallback delegate.
fallbackAction
The policy instance.
Builds an which provides a fallback action if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception, first asynchronously calls with details of the handled exception; then asynchronously calls .
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Builds an which provides a fallback action if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception, first asynchronously calls with details of the handled exception and execution context; then asynchronously calls .
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Builds an which provides a fallback action if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception, first asynchronously calls with details of the handled exception and execution context; then asynchronously calls .
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Fluent API for defining an async Fallback policy governing executions returning TResult.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, returns .
The policy builder.
The fallback value to provide.
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, asynchronously calls and returns its result.
The policy builder.
The fallback delegate.
fallbackAction
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, first asynchronously calls with details of the handled exception or result; then returns .
The policy builder.
The fallback value to provide.
The action to call asynchronously before invoking the fallback delegate.
onFallbackAsync
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, first asynchronously calls with details of the handled exception or result; then asynchronously calls and returns its result.
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, first asynchronously calls with details of the handled exception or result and the execution context; then returns .
The policy builder.
The fallback value to provide.
The action to call asynchronously before invoking the fallback delegate.
onFallbackAsync
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, first asynchronously calls with details of the handled exception or result and the execution context; then asynchronously calls and returns its result.
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Builds an which provides a fallback value if the main execution fails. Executes the main delegate asynchronously, but if this throws a handled exception or raises a handled result, first asynchronously calls with details of the handled exception or result and the execution context; then asynchronously calls and returns its result.
The policy builder.
The fallback delegate.
The action to call asynchronously before invoking the fallback delegate.
fallbackAction
onFallbackAsync
The policy instance.
Fluent API for defining a Fallback policy.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, calls .
The policy builder.
The fallback action.
fallbackAction
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, calls .
The policy builder.
The fallback action.
fallbackAction
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, first calls with details of the handled exception; then calls .
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, first calls with details of the handled exception; then calls .
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, first calls with details of the handled exception and the execution context; then calls .
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, first calls with details of the handled exception and the execution context; then calls .
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback action if the main execution fails. Executes the main delegate, but if this throws a handled exception, first calls with details of the handled exception and the execution context; then calls .
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Fluent API for defining a Fallback policy governing executions returning TResult.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, returns instead.
The policy builder.
The fallback value to provide.
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, calls and returns its result.
The policy builder.
The fallback action.
fallbackAction
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, calls and returns its result.
The policy builder.
The fallback action.
fallbackAction
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result; then returns .
The policy builder.
The fallback value to provide.
The action to call before invoking the fallback delegate.
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result; then calls and returns its result.
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result; then calls and returns its result.
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result and the execution context; then returns .
The policy builder.
The fallback value to provide.
The action to call before invoking the fallback delegate.
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result and the execution context; then calls and returns its result.
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result and the execution context; then calls and returns its result.
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
Builds a which provides a fallback value if the main execution fails. Executes the main delegate, but if this throws a handled exception or raises a handled result, first calls with details of the handled exception or result and the execution context; then calls and returns its result.
The policy builder.
The fallback action.
The action to call before invoking the fallback delegate.
fallbackAction
onFallback
The policy instance.
An interface defining all executions available on a non-generic, asynchronous policy
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Executes the specified asynchronous action within the policy.
The action to perform.
Executes the specified asynchronous action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Executes the specified asynchronous action within the policy.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy.
The action to perform. /// Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
contextData
Executes the specified asynchronous action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The value returned by the action
contextData
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
contextData
Executes the specified asynchronous action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Contains extensions methods on
Converts a non-generic into a generic for handling only executions returning .
This method allows you to convert a non-generic into a generic for contexts such as variables or parameters which may explicitly require a generic .
The non-generic to convert to a generic .
A generic version of the supplied non-generic .
An interface defining all executions available on an asynchronous policy generic-typed for executions returning results of type .
The type of the result of funcs executed through the Policy.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The value returned by the action
contextData
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy is in use, also cancels any further retries.
The value returned by the action
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
contextData
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
Whether to continue on a captured synchronization context.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
The captured result
contextData
Executes the specified asynchronous action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
A cancellation token which can be used to cancel the action. When a retry policy in use, also cancels any further retries.
Whether to continue on a captured synchronization context.
The captured result
Please use asynchronous-defined policies when calling asynchronous ExecuteAsync (and similar) methods.
A marker interface identifying Polly policies of all types, and containing properties common to all policies
A key intended to be unique to each policy instance, which is passed with executions as the property.
An interface defining all executions available on a non-generic, synchronous policy
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Executes the specified action within the policy.
The action to perform.
Executes the specified action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
Executes the specified action within the policy.
The action to perform.
Context data that is passed to the exception policy.
Executes the specified action within the policy.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
contextData
Executes the specified action within the policy.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
Executes the specified action within the policy and returns the Result.
The type of the Result.
The action to perform.
The value returned by the action
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The type of the result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result
The type of the t result.
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The type of the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
Contains extensions methods on
Converts a non-generic into a generic for handling only executions returning .
This method allows you to convert a non-generic into a generic for contexts such as variables or parameters which may explicitly require a generic .
The non-generic to convert to a generic .
A generic version of the supplied non-generic .
An interface defining all executions available on a synchronous policy generic-typed for executions returning results of type .
The type of the result of funcs executed through the Policy.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Executes the specified action within the policy and returns the Result.
The action to perform.
The value returned by the action
Executes the specified action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
context
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
A noop policy that can be applied to asynchronous delegates.
A noop policy that can be applied to asynchronous delegates returning a value of type .
Defines properties and methods common to all NoOp policies.
Defines properties and methods common to all NoOp policies generic-typed for executions returning results of type .
A no op policy that can be applied to delegates.
A no op policy that can be applied to delegates returning a value of type
The type of return values this policy will handle.
Transient fault handling policies that can be applied to delegates returning results of type
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Sets the PolicyKey for this instance.
Must be called before the policy is first used. Can only be set once.
The unique, used-definable key to assign to this instance.
Specifies the type of exception that this policy can handle.
The type of the exception to handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle with additional filters on this exception type.
The type of the exception.
The exception predicate to filter the type of exception this policy can handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle, with additional filters on this exception type, if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies a filter on the return result values that this strongly-typed generic policy will handle.
The predicate to filter the results this policy will handle.
The PolicyBuilder instance.
Specifies a return result value which the strongly-typed generic policy will handle.
The TResult value this policy will handle.
This policy filter matches the value returned using .Equals(), ideally suited for value types such as int and enum. To match characteristics of class return types, consider the overload taking a result predicate.
The PolicyBuilder instance.
Defines the implementation of a policy for synchronous executions returning .
The action passed by calling code to execute through the policy.
The policy execution context.
A token to signal that execution should be cancelled.
A result of the execution.
Constructs a new instance of a derived type with the passed and .
Predicates indicating which exceptions the policy should handle.
Predicates indicating which results the policy should handle.
Constructs a new instance of a derived type with the passed .
A indicating which exceptions and results the policy should handle.
Executes the specified action within the policy and returns the Result.
The action to perform.
The value returned by the action
Executes the specified action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
context
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The value returned by the action
contextData
Executes the specified action within the policy and returns the result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The value returned by the action
Executes the specified action within the policy and returns the captured result
The action to perform.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
contextData
The captured result
Executes the specified action within the policy and returns the captured result
The action to perform.
The cancellation token.
The captured result
Executes the specified action within the policy and returns the captured result.
The action to perform.
Arbitrary data that is passed to the exception policy.
The cancellation token.
The captured result
contextData
Executes the specified action within the policy and returns the captured result.
The action to perform.
Context data that is passed to the exception policy.
The cancellation token.
The captured result
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
Wraps the specified inner policy.
The inner policy.
PolicyWrap.PolicyWrap.
Implements elements common to both non-generic and generic policies, and sync and async policies.
A key intended to be unique to each instance.
A key intended to be unique to each instance, which is passed with executions as the property.
Updates the execution with context from the executing policy.
The execution .
The prior to changes by this method.
The prior to changes by this method.
Restores the supplied keys to the execution .
The execution .
The prior to execution through this policy.
The prior to execution through this policy.
Predicates indicating which exceptions the policy handles.
Defines a CancellationToken to use, when none is supplied.
Defines a value to use for continueOnCaptureContext, when none is supplied.
Constructs a new instance of a derived type of with the passed .
Predicates indicating which exceptions the policy should handle.
Constructs a new instance of a derived type of with the passed .
A indicating which exceptions the policy should handle.
Implements elements common to sync and async generic policies.
Predicates indicating which results the policy handles.
Constructs a new instance of a derived type of .
Predicates indicating which exceptions the policy should handle.
Predicates indicating which results the policy should handle.
Constructs a new instance of a derived type of with the passed .
A indicating which exceptions the policy should handle.
Builder class that holds the list of current exception predicates.
Predicates specifying exceptions that the policy is being configured to handle.
Returns a that represents this instance.
A that represents this instance.
Determines whether the specified is equal to this instance.
The to compare with this instance.
true if the specified is equal to this instance; otherwise, false.
Returns a hash code for this instance.
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Gets the of the current instance.
The instance that represents the exact runtime type of the current instance.
Specifies the type of exception that this policy can handle.
The type of the exception to handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle with additional filters on this exception type.
The type of the exception.
The exception predicate to filter the type of exception this policy can handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle, with additional filters on this exception type, if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of result that this policy can handle with additional filters on the result.
The type of return values this policy will handle.
The predicate to filter the results this policy will handle.
The PolicyBuilder instance.
Specifies a result value which the policy will handle.
The type of return values this policy will handle.
The TResult value this policy will handle.
This policy filter matches the value returned using .Equals(), ideally suited for value types such as int and enum. To match characteristics of class return types, consider the overload taking a result predicate.
The PolicyBuilder instance.
Builder class that holds the list of current execution predicates filtering TResult result values.
Predicates specifying exceptions that the policy is being configured to handle.
Predicates specifying results that the policy is being configured to handle.
Returns a that represents this instance.
A that represents this instance.
Determines whether the specified is equal to this instance.
The to compare with this instance.
true if the specified is equal to this instance; otherwise, false.
Returns a hash code for this instance.
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Gets the of the current instance.
The instance that represents the exact runtime type of the current instance.
Specifies the type of result that this policy can handle with additional filters on the result.
The predicate to filter the results this policy will handle.
The PolicyBuilder instance.
Specifies a result value which the policy will handle.
The TResult value this policy will handle.
This policy filter matches the value returned using .Equals(), ideally suited for value types such as int and enum. To match characteristics of class return types, consider the overload taking a result predicate.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle.
The type of the exception to handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle with additional filters on this exception type.
The type of the exception.
The exception predicate to filter the type of exception this policy can handle.
The PolicyBuilder instance.
Specifies the type of exception that this policy can handle if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
Specifies the type of exception that this policy can handle, with additional filters on this exception type, if found as an InnerException of a regular , or at any level of nesting within an .
The type of the exception to handle.
The PolicyBuilder instance, for fluent chaining.
The captured result of executing a policy
The outcome of executing the policy
The final exception captured. Will be null if policy executed successfully
The exception type of the final exception captured. Will be null if policy executed successfully
The context for this execution.
Builds a representing a successful execution through the policy.
The policy execution context
A representing a successful execution through the policy.
Builds a representing a failed execution through the policy. />
The exception
The exception type
The policy execution context
A representing a failed execution through the policy.
The captured result of executing a policy
The outcome of executing the policy
The final exception captured. Will be null if policy executed without exception.
The exception type of the final exception captured. Will be null if policy executed successfully
The result of executing the policy. Will be default(TResult) if the policy failed
The final handled result captured. Will be default(TResult) if the policy executed successfully, or terminated with an exception.
The fault type of the final fault captured. Will be null if policy executed successfully
The context for this execution.
Builds a representing a successful execution through the policy.
The result returned by execution through the policy
The policy execution context
A representing a successful execution through the policy.
Builds a representing a failed execution through the policy.
The exception
The exception type
The policy execution context
A representing a failed execution through the policy.
Builds a representing a failed execution through the policy.
The result returned by execution through the policy, which was treated as a handled failure
The policy execution context
A representing a failed execution through the policy.
Represents the outcome of executing a policy
Indicates that the policy ultimately executed successfully
Indicates that the policy ultimately failed
Represents the type of exception resulting from a failed policy
An exception type that has been defined to be handled by this policy
An exception type that has been not been defined to be handled by this policy
Represents the type of outcome from a failed policy
An exception type that has been defined to be handled by this policy
An exception type that has been not been defined to be handled by this policy
A result value that has been defined to be handled by this policy
A rate-limit policy that can be applied to asynchronous delegates.
A rate-limit policy that can be applied to asynchronous delegates returning a value of type .
Defines methods to be provided by a rate-limiter used in a Polly
Returns whether the execution is permitted; if not, returns what should be waited before retrying.
Calling this method consumes an execution permit if one is available: a caller receiving a return value true should make an execution.
Defines properties and methods common to all RateLimit policies.
Defines properties and methods common to all RateLimit policies generic-typed for executions returning results of type .
A lock-free token-bucket rate-limiter for a Polly .
Creates an instance of
How often one execution is permitted.
The capacity of the token bucket.
This equates to the maximum number of executions that will be permitted in a single burst (for example if none have been executed for a while).
Returns whether the execution is permitted; if not, returns what should be waited before retrying.
A rate-limit policy that can be applied to synchronous delegates.
A rate-limit policy that can be applied to synchronous delegates returning a value of type .
Exception thrown when a delegate executed through a is rate-limited.
The timespan after which the operation may be retried.
Initializes a new instance of the class.
The timespan after which the operation may be retried.
Initializes a new instance of the class.
The timespan after which the operation may be retried.
The inner exception.
Initializes a new instance of the class.
The timespan after which the operation may be retried.
The message.
Initializes a new instance of the class.
The message.
The timespan after which the operation may be retried.
The inner exception.
Represents a collection of policies keyed by which can be updated and consumed in a thread-safe manner.
The type of keys in the policy registry.
Adds an element with the provided key and policy to the registry.
The key for the policy.
The policy to store in the registry.
The type of Policy.
True if Policy was added. False otherwise.
Removes the policy stored under the specified from the registry.
The of the policy to remove.
This method returns the policy associated with the specified , if the
key is found; otherwise null.
This parameter is passed uninitialized.
The type of Policy.
True if the policy is successfully removed. Otherwise false.
Compares the existing policy for the specified key with a specified policy, and if they are equal, updates the policy with a third value.
The key whose value is compared with comparisonPolicy, and possibly replaced.
The policy that replaces the value for the specified , if the comparison results in equality.
The policy that is compared to the existing policy at the specified key.
Adds a policy with the provided key and policy to the registry
if the key does not already exist.
The key of the policy to add.
The function used to generate a policy for the key
The policy for the key. This will be either the existing policy for the key if the
key is already in the registry, or the new policy for the key as returned by policyFactory
if the key was not in the registry.
Adds a key/policy pair to the registry
if the key does not already exist.
The key of the policy to add.
the value to be added, if the key does not already exist
The policy for the key. This will be either the existing policy for the key if the
key is already in the registry, or the new policy if the key was not in the registry.
Adds a key/policy pair to the registry if the key does not already
exist, or updates a key/policy pair in the registry if the key
already exists.
The key to be added or whose policy should be updated
The function used to generate a policy for an absent key
The function used to generate a new policy for an existing key
based on the key's existing value
The new policy for the key. This will be either be the result of addPolicyFactory (if the key was
absent) or the result of updatePolicyFactory (if the key was present).
Adds a key/policy pair to the registry if the key does not already
exist, or updates a key/policy pair in the registry if the key
already exists.
The key to be added or whose policy should be updated
The policy to be added for an absent key
The function used to generate a new policy for an existing key based on
the key's existing value
The new policy for the key. This will be either be addPolicy (if the key was
absent) or the result of updatePolicyFactory (if the key was present).
Represents a collection of policies keyed by .
The type of keys in the policy registry.
Adds an element with the provided key and policy to the registry.
The key for the policy.
The policy to store in the registry.
The type of Policy.
is null.
A Policy with same already exists.
Gets or sets the with the specified key.
To retrieve a policy directly as a particular Policy type or Policy interface (avoiding a cast), use the method.
The key of the value to get or set.
is null.
The given key was not present in the dictionary.
The value associated with the specified key.
Removes the policy stored under the specified from the registry.
The key of the policy to remove.
True if the policy is successfully removed. Otherwise false.
is null.
Removes all keys and policies from registry.
Represents a read-only collection of policies keyed by .
The type of keys in the policy registry.
Gets the with the specified key.
To retrieve a policy directly as a particular Policy type or Policy interface (avoiding a cast), use the method.
The key of the value to get or set.
is null.
The given key was not present in the dictionary.
The value associated with the specified key.
Gets the policy stored under the provided key, casting to .
The type of Policy.
The policy stored in the registry under the given key.
is null.
Gets the policy stored under the provided key, casting to .
The key of the policy to get.
This method returns the policy associated with the specified , if the
key is found; otherwise null.
This parameter is passed uninitialized.
The type of Policy.
True if Policy exists for the provided Key. False otherwise.
Total number of policies in the registry.
Determines whether the specified exists.
The Key to locate in the registry
True if exists otherwise false
is null
Stores a registry of and policy pairs.
Uses ConcurrentDictionary to store the collection.
Creates a registry of policies with keys.
Creates a registry of policies with keys.
This internal constructor exists solely to facilitate testing of the GetEnumerator() methods, which allow us to support collection initialisation syntax.
a dictionary containing keys and policies used for testing.
Total number of policies in the registry.
Adds a policy with the provided key and policy to the registry.
The key for the policy.
The policy to store in the registry.
The type of Policy.
is null.
A Policy with same already exists.
Adds a policy with the provided key and policy to the registry.
The key for the policy.
The policy to store in the registry.
The type of Policy.
True if Policy was added. False otherwise.
Gets of sets the with the specified key.
To retrieve a policy directly as a particular Policy type or Policy interface (avoiding a cast), use the method.
The key of the policy to get or set.
is null.
The given key was not present in the registry.
The policy associated with the specified key.
Gets the policy stored under the provided key, casting to .
The type of Policy.
The policy stored in the registry under the given key.
is null.
The given key was not present in the registry.
Gets the policy stored under the provided key, casting to .
The key of the policy to get.
This method returns the policy associated with the specified , if the
key is found; otherwise null.
This parameter is passed uninitialized.
The type of Policy.
True if Policy exists for the provided Key. False otherwise.
Removes all keys and policies from registry.
Determines whether the specified exists.
The key to locate in the registry.
True if exists otherwise false.
is null.
Removes the policy stored under the specified from the registry.
The of the policy to remove.
True if the policy is successfully removed. Otherwise false.
is null.
Removes the policy stored under the specified from the registry.
The of the policy to remove.
This method returns the policy associated with the specified , if the
key is found; otherwise null.
This parameter is passed uninitialized.
The type of Policy.
True if the policy is successfully removed. Otherwise false.
Compares the existing policy for the specified key with a specified policy, and if they are equal, updates the policy with a third value.
The key whose value is compared with comparisonPolicy, and possibly replaced.
The policy that replaces the value for the specified , if the comparison results in equality.
The policy that is compared to the existing policy at the specified key.
Adds a policy with the provided key and policy to the registry
if the key does not already exist.
The key of the policy to add.
The function used to generate a policy for the key
The policy for the key. This will be either the existing policy for the key if the
key is already in the registry, or the new policy for the key as returned by policyFactory
if the key was not in the registry.
Adds a key/policy pair to the registry
if the key does not already exist.
The key of the policy to add.
the policy to be added, if the key does not already exist
The policy for the key. This will be either the existing policy for the key if the
key is already in the registry, or the new policy if the key was not in the registry.
Adds a key/policy pair to the registry if the key does not already
exist, or updates a key/policy pair in the registry if the key
already exists.
The key to be added or whose policy should be updated
The function used to generate a policy for an absent key
The function used to generate a new policy for an existing key
based on the key's existing value
The new policy for the key. This will be either be the result of addPolicyFactory (if the key was
absent) or the result of updatePolicyFactory (if the key was present).
Adds a key/policy pair to the registry if the key does not already
exist, or updates a key/policy pair in the registry if the key
already exists.
The key to be added or whose policy should be updated
The policy to be added for an absent key
The function used to generate a new policy for an existing key based on
the key's existing value
The new policy for the key. This will be either be addPolicy (if the key was
absent) or the result of updatePolicyFactory (if the key was present).
Returns an enumerator that iterates through the policy objects in the .
An enumerator for the .
The enumerator returned from the registry is safe to use concurrently with
reads and writes to the registry, however it does not represent a moment-in-time snapshot
of the registry's contents. The contents exposed through the enumerator may contain modifications
made to the registry after was called.
This is not considered a significant issue as typical usage of PolicyRegistry is for bulk population at app startup,
with only infrequent changes to the PolicyRegistry during app running, if using PolicyRegistry for dynamic updates during running.
Returns an enumerator that iterates through the policy objects in the .
An enumerator for the .
The enumerator returned from the registry is safe to use concurrently with
reads and writes to the registry, however it does not represent a moment-in-time snapshot
of the registry's contents. The contents exposed through the enumerator may contain modifications
made to the registry after was called.
This is not considered a significant issue as typical usage of PolicyRegistry is for bulk population at app startup,
with only infrequent changes to the PolicyRegistry during app running, if using PolicyRegistry for dynamic updates during running.
A predicate that can be run against a passed result value of type . Predicates are used to define whether policies handle the given result.
The passed result, against which to evaluate the predicate.
The type of results which this predicate can evaluate.
True if the passed matched the predicate; otherwise, false.
A collection of predicates used to define whether a policy handles a given value.
Returns a bool indicating whether the passed value matched any predicates.
The value to assess against the predicates.
Specifies that no result-handling filters are applied or are required.
A retry policy that can be applied to asynchronous delegates.
A retry policy that can be applied to asynchronous delegates returning a value of type .
Defines properties and methods common to all Retry policies.
Defines properties and methods common to all Retry policies generic-typed for executions returning results of type .
A retry policy that can be applied to synchronous delegates.
A retry policy that can be applied to synchronous delegates returning a value of type .
Fluent API for defining a .
Builds an that will retry once.
The policy builder.
The policy instance.
Builds an that will retry times.
The policy builder.
The retry count.
The policy instance.
Builds an that will retry once
calling on retry with the raised exception and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry once
calling on retry with the raised exception and retry count.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetry
Builds an that will retry times
calling on each retry with the raised exception and retry count.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds an that will retry times
calling on each retry with the raised exception and retry count.
The policy builder.
The retry count.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetryAsync
Builds an that will retry once
calling on retry with the raised exception, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry once
calling on retry with the raised exception, retry count and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetry
Builds an that will retry times
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than zero.
onRetry
Builds an that will retry times
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The retry count.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than zero.
onRetryAsync
Builds an that will retry indefinitely until the action succeeds.
The policy builder.
The policy instance.
Builds an that will retry indefinitely
calling on each retry with the raised exception.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the raised exception and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the raised exception.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the raised exception and retry count.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the raised exception and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the raised exception and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds an that will wait and retry times
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous exception and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The policy instance.
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception, the current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the raised exception, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds an that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception and retry count.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception and retry count.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous exception and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely
calling on each retry with the raised exception, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous exception and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Fluent API for defining an .
Builds an that will retry once.
The policy builder.
The policy instance.
Builds an that will retry times.
The policy builder.
The retry count.
The policy instance.
Builds an that will retry once
calling on retry with the handled exception or result and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry once
calling on retry with the handled exception or result and retry count.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetry
Builds an that will retry times
calling on each retry with the handled exception or result and retry count.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds an that will retry times
calling on each retry with the handled exception or result and retry count.
The policy builder.
The retry count.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetryAsync
Builds an that will retry once
calling on retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry once
calling on retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetry
Builds an that will retry times
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than zero.
onRetry
Builds an that will retry times
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The retry count.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than zero.
onRetryAsync
Builds an that will retry indefinitely until the action succeeds.
The policy builder.
The policy instance.
Builds an that will retry indefinitely
calling on each retry with the handled exception or result.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the handled exception or result and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the handled exception or result.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the handled exception or result and retry count.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the handled exception or result and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds an that will retry indefinitely
calling on each retry with the handled exception or result and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will retry indefinitely
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call asynchronously on each retry.
The policy instance.
onRetryAsync
Builds an that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds an that will wait and retry times
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry times
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), result of previous execution, and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call asynchronously on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The policy instance.
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, the current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds an that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, the current sleep duration, retry count, and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call asynchronously on each retry.
The policy instance.
sleepDurations
or
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds an that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and retry count.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Builds an that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call asynchronously on each retry.
The policy instance.
sleepDurationProvider
onRetryAsync
Fluent API for defining a Retry .
Builds a that will retry once.
The policy builder.
The policy instance.
Builds a that will retry times.
The policy builder.
The retry count.
The policy instance.
Builds a that will retry once
calling on retry with the raised exception and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry times
calling on each retry with the raised exception and retry count.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds a that will retry once
calling on retry with the raised exception, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry times
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds a that will retry indefinitely until the action succeeds.
The policy builder.
The policy instance.
Builds a that will retry indefinitely
calling on each retry with the raised exception.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the raised exception and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the raised exception and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the raised exception, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds a that will wait and retry times
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the raised exception, current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the raised exception, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds a that will wait and retry times
calling on each retry with the raised exception, current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the raised exception, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the raised exception, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous exception and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry as many times as there are provided
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The policy instance.
Builds a that will wait and retry as many times as there are provided
calling on each retry with the raised exception and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry as many times as there are provided
calling on each retry with the raised exception, current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry as many times as there are provided
calling on each retry with the raised exception, current sleep duration, retry count and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds a that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception and retry count.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the raised exception, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous exception and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Fluent API for defining a Retry .
Builds a that will retry once.
The policy builder.
The policy instance.
Builds a that will retry times.
The policy builder.
The retry count.
The policy instance.
Builds a that will retry once
calling on retry with the handled exception or result and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry times
calling on each retry with the handled exception or result and retry count.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds a that will retry once
calling on retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry times
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The retry count.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
onRetry
Builds a that will retry indefinitely until the action succeeds.
The policy builder.
The policy instance.
Builds a that will retry indefinitely
calling on each retry with the handled exception or result.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the handled exception or result and retry count.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the handled exception or result and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will retry indefinitely
calling on each retry with the handled exception or result, retry count and context data.
The policy builder.
The action to call on each retry.
The policy instance.
onRetry
Builds a that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds a that will wait and retry times
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc).
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry times.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
sleepDurationProvider
or
onRetry
Builds a that will wait and retry times
calling on each retry with the handled exception or result, current sleep duration, retry count, and context data.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
The retry count.
The function that provides the duration to wait for for a particular retry attempt.
The action to call on each retry.
The policy instance.
retryCount;Value must be greater than or equal to zero.
timeSpanProvider
or
onRetry
Builds a that will wait and retry as many times as there are provided
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The policy instance.
Builds a that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result and the current sleep duration.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, current sleep duration and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry as many times as there are provided
calling on each retry with the handled exception or result, current sleep duration, retry count and context data.
On each retry, the duration to wait is the current item.
The policy builder.
The sleep durations to wait for on each retry.
The action to call on each retry.
The policy instance.
sleepDurations
or
onRetry
Builds a that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds a that will wait and retry indefinitely until the action succeeds.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context
The policy builder.
The function that provides the duration to wait for for a particular retry attempt.
The policy instance.
sleepDurationProvider
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and retry count.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc)
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc) and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
Builds a that will wait and retry indefinitely until the action succeeds,
calling on each retry with the handled exception or result, retry count and execution context.
On each retry, the duration to wait is calculated by calling with
the current retry number (1 for first retry, 2 for second etc), previous execution result and execution context.
The policy builder.
A function providing the duration to wait before retrying.
The action to call on each retry.
The policy instance.
sleepDurationProvider
onRetry
A timeout policy which can be applied to async delegates.
A timeout policy which can be applied to async delegates.
The return type of delegates which may be executed through the policy.
Defines properties and methods common to all Timeout policies.
Defines properties and methods common to all Timeout policies generic-typed for executions returning results of type .
A timeout policy which can be applied to delegates.
A timeout policy which can be applied to delegates returning a value of type .
Exception thrown when a delegate executed through a does not complete, before the configured timeout.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Defines strategies used by s to enforce timeouts.
An optimistic . The relies on a timing-out to cancel executed delegates by co-operative cancellation.
An pessimistic . The will assume the delegates passed to be executed will not necessarily honor any timing-out , but the policy will still guarantee timing out (and returning to the caller) by other means.
A null struct for policies and actions which do not return a TResult.
Contains extension methods on the class.
Rethrows the extended , , using the class to rethrow it with its original stack trace, if differs from .
The exception to throw, if it differs from
The exception to compare against.
Time related delegates used to support different compilation targets and to improve testability of the code.
Allows the setting of a custom Thread.Sleep implementation for testing.
By default this will use the 's .
Allows the setting of a custom async Sleep implementation for testing.
By default this will be a call to taking a
Allows the setting of a custom DateTime.UtcNow implementation for testing.
By default this will be a call to
Allows the setting of a custom DateTimeOffset.UtcNow implementation for testing.
By default this will be a call to
Allows the setting of a custom method for cancelling tokens after a timespan, for use in testing.
By default this will be a call to CancellationTokenSource.CancelAfter(timespan)
Resets the custom implementations to their defaults.
Should be called during test teardowns.
Task helpers.
Defines a completed Task for use as a completed, empty asynchronous delegate.
A policy that allows two (and by recursion more) async Polly policies to wrap executions of async delegates.
Updates the execution with context from the executing .
The execution .
The prior to changes by this method.
The prior to changes by this method.
Returns the outer in this
Returns the next inner in this
A policy that allows two (and by recursion more) async Polly policies to wrap executions of async delegates.
The return type of delegates which may be executed through the policy.
Updates the execution with context from the executing .
The execution .
The prior to changes by this method.
The prior to changes by this method.
Returns the outer in this
Returns the next inner in this
Defines properties and methods common to all PolicyWrap policies.
Returns the outer in this
Returns the next inner in this
Defines properties and methods common to all PolicyWrap policies generic-typed for executions returning results of type .
Extension methods for IPolicyWrap.
Returns all the policies in this , in Outer-to-Inner order.
The for which to return policies.
An of all the policies in the wrap.
Returns all the policies in this of type , in Outer-to-Inner order.
The for which to return policies.
The type of policies to return.
An of all the policies of the given type.
Returns all the policies in this of type matching the filter, in Outer-to-Inner order.
The for which to return policies.
A filter to apply to any policies of type found.
The type of policies to return.
An of all the policies of the given type, matching the filter.
Returns the single policy in this of type .
The for which to search for the policy.
The type of policy to return.
A if one is found; else null.
InvalidOperationException, if more than one policy of the type is found in the wrap.
Returns the single policy in this of type matching the filter.
The for which to search for the policy.
A filter to apply to any policies of type found.
The type of policy to return.
A matching if one is found; else null.
InvalidOperationException, if more than one policy of the type is found in the wrap.
A policy that allows two (and by recursion more) Polly policies to wrap executions of delegates.
Updates the execution with context from the executing .
The execution .
The prior to changes by this method.
The prior to changes by this method.
Returns the outer in this
Returns the next inner in this
A policy that allows two (and by recursion more) Polly policies to wrap executions of delegates.
The return type of delegates which may be executed through the policy.
Updates the execution with context from the executing .
The execution .
The prior to changes by this method.
The prior to changes by this method.
Returns the outer in this
Returns the next inner in this
Defines extensions for configuring instances on an or .
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Defines extensions for configuring instances on an or .
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.
Wraps the specified outer policy round the inner policy.
The outer policy.
The inner policy.
A instance representing the combined wrap.