<PackageReference Include="Polly.Core" Version="8.6.2" />

BridgeComponent

using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace Polly.Utils.Pipeline { [NullableContext(1)] [Nullable(0)] [DebuggerDisplay("{Strategy}")] internal sealed class BridgeComponent : BridgeComponentBase { public ResilienceStrategy Strategy { get; } public BridgeComponent(ResilienceStrategy strategy) : base(strategy) { Strategy = strategy; } [return: Nullable(new byte[] { 0, 0, 1 })] internal override ValueTask<Outcome<TResult>> ExecuteCore<[Nullable(2)] TResult, [Nullable(2)] TState>([Nullable(new byte[] { 1, 1, 1, 0, 0, 1 })] Func<ResilienceContext, TState, ValueTask<Outcome<TResult>>> callback, ResilienceContext context, TState state) { return Strategy.ExecuteCore(callback, context, state); } } }