Tags: loresoft/Injectio
Tags
Refactor generator helpers, cache analyzer result
Refactor registration merging and clean up usings Add EquatableArray.Merge for efficient merging of arrays. Refactor ServiceRegistrationGenerator to use Merge and collection expressions. Remove unused using directives and improve code readability with minor renaming and style updates.
Add decorator registration support with compile-time validation (#303) * Add decorator pattern support to source generator Adds RegisterDecoratorAttribute (non-generic and generic variants) for wrapping existing service registrations with decorator classes. The generator emits a self-contained runtime helper (Injectio.Decoration.g.cs) so no new package dependencies are introduced. - Supports chaining via Order (lower = innermost) - Supports keyed decoration, AnyKey, open-generic (closed instances), factory-built decorators, and tag filtering - Adds diagnostics INJ0010-INJ0016 for decorator validation - Runtime helpers use ActivatorUtilities for DI-friendly construction https://claude.ai/code/session_01DFMTsCCwsWoYM7vWumE6mw * Refactor generators: models, pipeline & infra * progress * bug fixes * Update Extensions.cs * Delete Injectio.Attributes.csproj * Delete REFACTOR_PLAN.md --------- Co-authored-by: Claude <noreply@anthropic.com>
PreviousNext