Repository navigation
Releases: nfMalde/Autofac.EasyPropInject
Releases · nfMalde/Autofac.EasyPropInject
Release list
Release v3.0.0
Release Info Version 3.0.0
Info
Allows to inject properties of classes by using annotations.
Decorate any public, protected or private property with [FromAutofac] and EasyPropInject resolves it
from the Autofac container while the component is activated. Property metadata is cached per type and
written through emitted setters, so injection costs close to nothing after the first resolve.
Changes in v3.0.0
- Upgraded to Autofac 9.x and added a net10.0 build next to netstandard2.1
- Roughly three times faster: property metadata is cached per type and written through emitted setters instead of using reflection on every resolve
- Fixed: private and protected properties declared on a base class were never injected
- Fixed: an unresolvable property was overwritten with null, wiping any value assigned in the constructor. It is now left untouched; the old behaviour is available via EasyPropInjectOptions.UnresolvedBehavior
- Added EasyPropInjectOptions, configurable via AddEasyPropInject(options => ...)
- AddEasyPropInject() can be called at any point while configuring the container - before, after or in between registrations
Release v2.0.0
Release Info Version 2.0.0
Info
Allows to inject properties of classes by using annotations.
Changes in v2.0.0
Upgraded to Autofac 8.x