From d7d4a4c28e6b8fdd5fc98e48df66865ace5a0b47 Mon Sep 17 00:00:00 2001 From: jerviscui Date: Mon, 6 Mar 2023 20:28:32 +0800 Subject: [PATCH] Publish v0.3.0 --- README.md | 15 +++++++++++++++ src/RetryCore/RetryCore.csproj | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 18f6a07..8aae835 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,18 @@ result.IsSuccess result.Result ``` +### IRetryIntervalStrategy + +```csharp +var builder = RetryBuilder.Default.ConfigureOptions(options => +{ + options.RetryInterval = new ConstantRetryInterval(TimeSpan.FromMilliseconds(100)); +}); + +var builder = RetryBuilder.Default.ConfigureOptions(options => +{ + options.RetryInterval = + new ExponentialRetryInterval(TimeSpan.FromMilliseconds(100), TimeSpan.FromSeconds(60)); +}); +``` + diff --git a/src/RetryCore/RetryCore.csproj b/src/RetryCore/RetryCore.csproj index 3e8dabc..9da0e58 100644 --- a/src/RetryCore/RetryCore.csproj +++ b/src/RetryCore/RetryCore.csproj @@ -8,7 +8,7 @@ True latest - 0.2.0 + 0.3.0 $(AssemblyName) A library for retrying operations. jerviscui