Generate injectable resource providers by default - #67
Merged
Conversation
- Keep generated resource classes static and preserve their API shape - Always emit injectable interfaces and sealed provider adapters - Remove the obsolete opt-in property and cover provider collisions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Default ReswPlusGenerateResourceInterfaces to true - Suppress interfaces, providers, and related collision diagnostics when false - Verify reserved adapter names remain usable when generation is disabled Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Describe per-resource generated type names - Show constructor injection and container registration - Clarify explicit implementation and opt-out behavior Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add a dedicated guide for generated types, DI registration, compatibility, and opt-out behavior - Keep the README section as a concise link to the guide Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
I<Resource>interface and sealed<Resource>Provideradapter by default<Resource>class static so package upgrades do not alter its API shape<ReswPlusGenerateResourceInterfaces>false</ReswPlusGenerateResourceInterfaces>Validation
dotnet test tests\ReswPlusUnitTests\ReswPlusUnitTests.csproj --no-restore(1,400 passed)