-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cancellation support to async methods
Introduce calls to `cancellationToken.ThrowIfCancellationRequested()` in various methods across the `XperienceCommunity.DataContext` namespace to ensure operations respect cancellation requests. Updated methods include `FirstOrDefaultAsync` and `ToListAsync` in `ContentItemContext.cs`, `PageContentContext.cs`, and `ReusableSchemaContext.cs`, as well as `ExecuteQueryAsync` in `ContentQueryExecutor.cs`, `PageContentQueryExecutor.cs`, and `ReusableSchemaExecutor.cs`. These changes improve the responsiveness and resource management of the application.
- Loading branch information
1 parent
04b9d7d
commit bb0b8ae
Showing
6 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters