From 6340a6557a0e131c343eaa6f7c2ee5a8d270859c Mon Sep 17 00:00:00 2001 From: peter-csala Date: Wed, 25 Oct 2023 12:05:29 +0200 Subject: [PATCH] Fix arrows --- docs/migration-v8.md | 8 ++++---- src/Snippets/Docs/Migration.Wrap.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/migration-v8.md b/docs/migration-v8.md index 1d5f4afdde2..7ef704b7772 100644 --- a/docs/migration-v8.md +++ b/docs/migration-v8.md @@ -157,8 +157,8 @@ IAsyncPolicy retryPolicy = Policy.Handle().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); ``` @@ -170,8 +170,8 @@ In v8, there's no need to use policy wrap explicitly. Instead, policy wrapping i ```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() { diff --git a/src/Snippets/Docs/Migration.Wrap.cs b/src/Snippets/Docs/Migration.Wrap.cs index 231fb4989cc..ba77f1c610c 100644 --- a/src/Snippets/Docs/Migration.Wrap.cs +++ b/src/Snippets/Docs/Migration.Wrap.cs @@ -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 @@ -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() {