Skip to content

Commit

Permalink
Added migration section for OnlyAllowPersistedOperations option change (
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored and michaelstaib committed Nov 19, 2024
1 parent 25d3977 commit d59a1dd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ Accessing a keyed service that has not been registered will now throw, instead o

This change aligns the API with the regular (non-keyed) service access API.

## Change to OnlyAllowPersistedOperations option

**Before**

```csharp
ModifyRequestOptions(o => o.OnlyAllowPersistedOperations = true);
```

**After**

```csharp
ModifyRequestOptions(o => o.PersistedOperations.OnlyAllowPersistedDocuments = true);
```

# Deprecations

Things that will continue to function this release, but we encourage you to move away from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ Accessing a keyed service that has not been registered will now throw, instead o

This change aligns the API with the regular (non-keyed) service access API.

## Change to OnlyAllowPersistedOperations option

**Before**

```csharp
ModifyRequestOptions(o => o.OnlyAllowPersistedOperations = true);
```

**After**

```csharp
ModifyRequestOptions(o => o.PersistedOperations.OnlyAllowPersistedDocuments = true);
```

# Deprecations

Things that will continue to function this release, but we encourage you to move away from.
Expand Down

0 comments on commit d59a1dd

Please sign in to comment.