Skip to content

Commit

Permalink
Fix arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-csala committed Oct 25, 2023
1 parent e7e7e23 commit 6340a65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/migration-v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ IAsyncPolicy retryPolicy = Policy.Handle<Exception>().WaitAndRetryAsync(3, _ =>
IAsyncPolicy timeoutPolicy = Policy.TimeoutAsync(TimeSpan.FromSeconds(3));

// Wrap the policies. The policies are executed in the following order (i.e. Last-In-First-Out):
// 1. Retry << outer
// 2. Timeout << inner
// 1. Retry <== outer
// 2. Timeout <== inner
IAsyncPolicy wrappedPolicy = Policy.WrapAsync(retryPolicy, timeoutPolicy);
```
<!-- endSnippet -->
Expand All @@ -170,8 +170,8 @@ In v8, there's no need to use policy wrap explicitly. Instead, policy wrapping i
<!-- snippet: migration-policy-wrap-v8 -->
```cs
// The "PolicyWrap" is integrated directly. Strategies are executed in the same order as they were added (i.e. First-In-First-Out):
// 1. Retry << outer
// 2. Timeout << outer
// 1. Retry <== outer
// 2. Timeout <== outer
ResiliencePipeline pipeline = new ResiliencePipelineBuilder()
.AddRetry(new()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Snippets/Docs/Migration.Wrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public static void PolicyWrap_V7()
IAsyncPolicy timeoutPolicy = Policy.TimeoutAsync(TimeSpan.FromSeconds(3));

// Wrap the policies. The policies are executed in the following order (i.e. Last-In-First-Out):
// 1. Retry << outer
// 2. Timeout << inner
// 1. Retry <== outer
// 2. Timeout <== inner
IAsyncPolicy wrappedPolicy = Policy.WrapAsync(retryPolicy, timeoutPolicy);

#endregion
Expand All @@ -23,8 +23,8 @@ public static void PolicyWrap_V8()
#region migration-policy-wrap-v8

// The "PolicyWrap" is integrated directly. Strategies are executed in the same order as they were added (i.e. First-In-First-Out):
// 1. Retry << outer
// 2. Timeout << outer
// 1. Retry <== outer
// 2. Timeout <== outer
ResiliencePipeline pipeline = new ResiliencePipelineBuilder()
.AddRetry(new()
{
Expand Down

0 comments on commit 6340a65

Please sign in to comment.