Repository navigation
feat: propagate results and handle concurrency in finally behaviors - #21
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4831c5a6d6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

0 New Issues
0 Fixed Issues
0 Accepted Issues
Что и зачем
IFinallyRequestBehavior<TRequest, TResult>.FinallyAsyncтеперь возвращаетTask<Result?>: каждый behavior передаёт текущий Result дальше или возвращает замену.CleanupTransactionBehaviorсохраняет исходный объект результата после rollback/dispose. НовыйConcurrencyExceptionBehaviorреализует тот же Finally-контракт и преобразует прямойConcurrencyExceptionвError.Conflict, если результат отсутствует или успешен.Независимый от провайдера
ConcurrencyExceptionрасположен вPersistence/Errors. Существующие failed Result сохраняются; отмена, неизвестные, обёрнутые и агрегированные исключения не преобразуются. Контракт mediator требует выполнить все finally behaviors, сохранить исходное исключение и не принимать обработку исключения при ошибках cleanup. Поддерживаются Result и Result; преобразование нетипизированной ошибки в типизированный результат выполняет адаптер.Проверка
Выполнены
dotnet restore,dotnet format --no-restore, Release-сборка иdotnet test --configuration Release. Сборка без предупреждений, 292 теста прошли. Проверены передача исходного Result и Result, оба порядка cleanup/concurrency, сохранение ошибок rollback/dispose после формирования Conflict и прежние сценарии агрегации исключений.Совместимость и границы