Repository navigation
fix: 1.0.1 patch for DI floor, CQRS dispatchers, and events - #21
Merged
Merged
Conversation
AddRequestFlow read ImplementationInstance on every descriptor, which throws for a keyed descriptor in Microsoft.Extensions.DependencyInjection.Abstractions 8.0.0 and 8.0.1. The registry lookup now checks the service type first. CI also runs RequestFlow.Tests.Unit on net8.0 against Microsoft.Extensions.DependencyInjection 8.0.0, which resolves the Abstractions 8.0.1 floor that src/RequestFlow declares.
An interface declared as the strategy for a second target fell through to the abstract-class check and added RF0014.
One class implemented both ICommandDispatcher and IQueryDispatcher, so a resolved query dispatcher could be cast to a command dispatcher. The ValueTask pair had the same shape.
ParallelEventPlan allocated a task array even when no handler applied. Cancellation and completion behavior match the parallel plan.
The DetachedStrategy sample took a CancellationToken, which the container cannot resolve. It now takes IHostApplicationLifetime. README and ROADMAP linked the 1.0.0 changelog anchor by its old 2026-10-14 date.
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.
Patch fixes found after 1.0.0. No public API changes. CHANGELOG lists them under
[Unreleased]for 1.0.1.AddRequestFlowthrewInvalidOperationException("This service descriptor is keyed") when a keyed service was registered before it and the app resolvedMicrosoft.Extensions.DependencyInjection.Abstractions8.0.0 or 8.0.1. The registry lookup checks the service type before readingImplementationInstance.RequestFlow.Tests.Uniton net8.0 withMicrosoft.Extensions.DependencyInjection8.0.0, which resolves the Abstractions 8.0.1 floor thatsrc/RequestFlowdeclares.tests/Directory.Build.propsexposes the version asDependencyInjectionVersion.RF0013reported once: an interface declared as the strategy for a second target no longer addsRF0014.ICommandDispatcherandIQueryDispatcherresolve to separate internal classes, so a query dispatcher can no longer be cast to a command dispatcher. The ValueTask pair is split the same way. The cast was never documented.ParallelPublishStrategyevent with no applicable handler runs on the sequential plan and skips the task-array allocation. Cancellation and completion behavior are unchanged.docs/events.mdtakesIHostApplicationLifetimeinstead of aCancellationTokenthe container cannot resolve. README and ROADMAP link the 1.0.0 changelog anchor by its 2026-10-17 date.Validation:
dotnet build -c Release: 0 warnings, 0 errors.dotnet test -c Release: all pass on net462, net8.0, and net10.0.RequestFlow.Tests.Unitran 1110, 1139, and 1139 tests;RequestFlow.Cqrs.Tests.Unitran 68 on each.git diff --check: passed.