Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/strategies/retry.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ ImmutableArray<Type> retryableExceptions = networkExceptions
var retry = new ResiliencePipelineBuilder()
.AddRetry(new()
{
ShouldHandle = args
=> ValueTask.FromResult(args.Outcome.Exception is not null
&& retryableExceptions.Contains(args.Outcome.Exception.GetType())),
ShouldHandle = args =>
ValueTask.FromResult(args.Outcome.Exception is not null &&
retryableExceptions.Contains(args.Outcome.Exception.GetType())),
MaxRetryAttempts = 3,
})
.Build();
Expand Down
6 changes: 3 additions & 3 deletions src/Snippets/Docs/Retry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ public static void Pattern_OverusingBuilder()
var retry = new ResiliencePipelineBuilder()
.AddRetry(new()
{
ShouldHandle = args
=> ValueTask.FromResult(args.Outcome.Exception is not null
&& retryableExceptions.Contains(args.Outcome.Exception.GetType())),
ShouldHandle = args =>
ValueTask.FromResult(args.Outcome.Exception is not null &&
retryableExceptions.Contains(args.Outcome.Exception.GetType())),
MaxRetryAttempts = 3,
})
.Build();
Expand Down