Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 537cfb4

Browse files
Ihar YakimushIhar Yakimush
authored andcommitted
update readme
1 parent f6338a8 commit 537cfb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ public void ConfigureServices(IServiceCollection services)
1111
{
1212
options.For<InitializationException>().Rethrow();
1313
14-
options.For<SomeTransientException>().Retry(ro => ro.MaxRetryCount = 2).NextChain();
14+
options.For<SomeTransientException>().Retry(ro => ro.MaxRetryCount = 2).NextPolicy();
1515
1616
options.For<SomeBadRequestException>()
1717
.Response(e => 400)
1818
.Headers((h, e) => h["X-MyCustomHeader"] = e.Message)
1919
.WithBody((req,sw, exception) => sw.WriteAsync(exception.ToString()))
20-
.NextChain();
20+
.NextPolicy();
2121
2222
// Ensure that all exception types are handled by adding handler for generic exception at the end.
2323
options.For<Exception>()

0 commit comments

Comments
 (0)