Conversation
7 tasks
Copilot
AI
changed the title
[WIP] Add CommandBatch type and SendBatchAsync for batched execution
feat: CommandBatch type and SendBatchAsync() for batched command execution
Apr 17, 2026
Agent-Logs-Url: https://github.com/dailydevops/pulse/sessions/25e3da57-4039-4497-83e9-08967ad412f8 Co-authored-by: samtrion <3283596+samtrion@users.noreply.github.com>
7f3086c to
5f63702
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #421 +/- ##
==========================================
+ Coverage 91.85% 92.28% +0.42%
==========================================
Files 146 148 +2
Lines 5547 5558 +11
Branches 522 523 +1
==========================================
+ Hits 5095 5129 +34
+ Misses 304 280 -24
- Partials 148 149 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds sequential batch command execution to
IMediatorSendOnly— execute a list of void commands in order, stopping and propagating the first exception with no rollback.New Types
CommandBatch(Extensibility/CommandBatch.cs) — fluent builder that stores commands as type-erasedFunc<IMediatorSendOnly, CancellationToken, Task>delegatesMediatorSendOnlyExtensions(Extensibility/MediatorSendOnlyExtensions.cs) —SendBatchAsyncextension onIMediatorSendOnlyUsage
Key Design Decisions
Add<TCommand>constrained toICommand(void) — batch returnsTask, responses are meaninglessAddtime, not re-resolved at execution timeCommandslist isinternalto keep the execution contract encapsulated inSendBatchAsync