Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martintmk committed Sep 19, 2023
1 parent 7b37552 commit 57ae659
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/migration-v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ Welcome to the migration guide for Polly's v8 version. The v8 version of Polly b
- **Built-in telemetry**: Polly v8 now has built-in telemetry support.
- **Improved performance and low-allocation APIs**: Polly v8 boasts significant performance enhancements and provides zero-allocation APIs for advanced use cases.

## Migrating policies
## Migrating execution policies

This section describes how to migrate from execution policies (i.e. `IAsyncPolicy`, `ISyncPolicy`) to resilience pipelines (i.e. `ResiliencePipeline`, `ResiliencePipeline<T>`).

### Configuring policies in v7

In earlier versions, Polly exposed various interfaces to execute user code:

Expand All @@ -25,8 +29,6 @@ In earlier versions, Polly exposed various interfaces to execute user code:
- `ISyncPolicy`
- `ISyncPolicy<T>`

### Configuring policies in v7

These interfaces were created and used as:

<!-- snippet: migration-policies-v7 -->
Expand Down Expand Up @@ -148,7 +150,7 @@ Here are the primary changes:
- The final `ResiliencePipeline` is created with a `Build()` call.
- `ResiliencePipeline` can execute both synchronous and asynchronous tasks.

## Migrating `PolicyWrap`
## Migrating policy wrap

### Policy wrap in v7

Expand Down

0 comments on commit 57ae659

Please sign in to comment.