From 603a43d9b7b93a8d2f7d60e946e63f7182e14c62 Mon Sep 17 00:00:00 2001 From: Martin Tomka Date: Thu, 17 Aug 2023 13:35:25 +0200 Subject: [PATCH] Rename utility method --- src/Polly.Core/ResiliencePipelineBuilderBase.cs | 2 +- src/Polly.Core/ResiliencePipelineBuilderExtensions.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Polly.Core/ResiliencePipelineBuilderBase.cs b/src/Polly.Core/ResiliencePipelineBuilderBase.cs index 4da5db5bf18..d6e94f8e2f7 100644 --- a/src/Polly.Core/ResiliencePipelineBuilderBase.cs +++ b/src/Polly.Core/ResiliencePipelineBuilderBase.cs @@ -88,7 +88,7 @@ private protected ResiliencePipelineBuilderBase(ResiliencePipelineBuilderBase ot internal Action Validator { get; private protected set; } = ValidationHelper.ValidateObject; [RequiresUnreferencedCode(Constants.OptionsValidation)] - internal void AddStrategyCore(Func factory, ResilienceStrategyOptions options) + internal void AddPipelineComponent(Func factory, ResilienceStrategyOptions options) { Guard.NotNull(factory); Guard.NotNull(options); diff --git a/src/Polly.Core/ResiliencePipelineBuilderExtensions.cs b/src/Polly.Core/ResiliencePipelineBuilderExtensions.cs index 04ce0540a44..93ffaf5a946 100644 --- a/src/Polly.Core/ResiliencePipelineBuilderExtensions.cs +++ b/src/Polly.Core/ResiliencePipelineBuilderExtensions.cs @@ -27,7 +27,7 @@ public static TBuilder AddPipeline(this TBuilder builder, ResiliencePi Guard.NotNull(builder); Guard.NotNull(pipeline); - builder.AddStrategyCore(_ => PipelineComponent.FromPipeline(pipeline), EmptyOptions.Instance); + builder.AddPipelineComponent(_ => PipelineComponent.FromPipeline(pipeline), EmptyOptions.Instance); return builder; } @@ -49,7 +49,7 @@ public static ResiliencePipelineBuilder AddPipeline(this Resil Guard.NotNull(builder); Guard.NotNull(pipeline); - builder.AddStrategyCore(_ => PipelineComponent.FromPipeline(pipeline), EmptyOptions.Instance); + builder.AddPipelineComponent(_ => PipelineComponent.FromPipeline(pipeline), EmptyOptions.Instance); return builder; } @@ -72,7 +72,7 @@ public static TBuilder AddStrategy(this TBuilder builder, Func PipelineComponent.FromStrategy(factory(context)), options); + builder.AddPipelineComponent(context => PipelineComponent.FromStrategy(factory(context)), options); return builder; } @@ -95,7 +95,7 @@ public static ResiliencePipelineBuilder AddStrategy( Guard.NotNull(factory); Guard.NotNull(options); - builder.AddStrategyCore(context => PipelineComponent.FromStrategy(factory(context)), options); + builder.AddPipelineComponent(context => PipelineComponent.FromStrategy(factory(context)), options); return builder; } @@ -119,7 +119,7 @@ public static ResiliencePipelineBuilder AddStrategy( Guard.NotNull(factory); Guard.NotNull(options); - builder.AddStrategyCore(context => PipelineComponent.FromStrategy(factory(context)), options); + builder.AddPipelineComponent(context => PipelineComponent.FromStrategy(factory(context)), options); return builder; }