Saneject 0.18.0 (beta)
Pre-release
Pre-release
Features
- Added support for optional error suppression
- You can now mark
[Inject(suppressMissingErrors: true)]to silence expected missing bindings or dependencies. - Suppressed issues are still counted and clearly noted below the injection summary log for full transparency.
- Mostly useful for advanced edge cases, e.g., shared components used in multiple contexts where some references are intentionally null.
- You can now mark
Fixes
- Fix incorrect
memberNameparameter for method injection- Updated
MethodInjectorto passmethod.Nameinstead of parameter name (p.Name) as thememberNamevalue during method injection. - Ensures
.ToMember("...")correctly targets method names when using method injection.
- Updated
Refactor
- The large
DependencyInjectorclass has been refactored into smaller, modular classes with clear, isolated responsibilities, reusable methods, which makes the system easier to maintain.