Skip to content

Commit 27e26eb

Browse files
committed
Added retry-policy example to README.md
1 parent 70f854b commit 27e26eb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Remembers the result of arbitrary code:
3030
var transactionId = await Capture("TransactionId", () => Guid.NewGuid());
3131
//or simply
3232
var transactionId = await Capture(Guid.NewGuid);
33+
//can also be used for external calls with automatic retry
34+
await Capture(() => httpClient.PostAsync("https://someurl.com", content), RetryPolicy.Default);
3335
```
3436
### Messages
3537
Wait for retrieval of external message - without taking up resources:

0 commit comments

Comments
 (0)