Documentation Index
Fetch the complete documentation index at: https://mintlify.com/App-vNext/Polly/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Polly.Core namespace provides the foundational types for building and executing resilience pipelines in .NET applications.Key Classes
ResilienceContext
A context assigned to a single execution of aResiliencePipeline. It is created manually or automatically when executing resilience operations.
A key unique to the call site of the current execution. This value should have low cardinality (do not use GUIDs).
The cancellation token associated with the execution.
Indicates whether the execution should continue on the captured context.
Custom properties attached to the context.
Outcome<TResult>
Represents the outcome of an operation, which can be either a result value or an exception. Used in advanced, low-allocation scenarios.Static Factory Methods
Creates an outcome with the given result value.
Creates an outcome with the given exception.
Returns an outcome with the given value wrapped as a completed
ValueTask.Returns an outcome with the given exception wrapped as a completed
ValueTask.