- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename ResilienceStrategy to ResiliencePipeline (#1483)
Showing
144 changed files
with
1,641 additions
and
1,642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
bench/Polly.Core.Benchmarks/ResiliencePipelineProviderBenchmark.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Polly.Core.Benchmarks; | ||
|
||
public class ResiliencePipelineProviderBenchmark | ||
{ | ||
private ResiliencePipelineProvider<string>? _provider; | ||
|
||
[GlobalSetup] | ||
public void Setup() | ||
{ | ||
_provider = new ServiceCollection() | ||
.AddResiliencePipeline("dummy", builder => builder.AddTimeout(new TimeoutStrategyOptions())) | ||
.AddResiliencePipeline<string, string>("dummy", builder => builder.AddTimeout(new TimeoutStrategyOptions())) | ||
.BuildServiceProvider() | ||
.GetRequiredService<ResiliencePipelineProvider<string>>(); | ||
} | ||
|
||
[Benchmark] | ||
public void GetPipeline_Ok() => _provider!.GetPipeline("dummy"); | ||
|
||
[Benchmark] | ||
public void GetPipeline_Generic_Ok() => _provider!.GetPipeline<string>("dummy"); | ||
} |
24 changes: 0 additions & 24 deletions
24
bench/Polly.Core.Benchmarks/ResilienceStrategyProviderBenchmark.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.