Releases: z4kn4fein/stashbox
Releases · z4kn4fein/stashbox
Stashbox v3.6.1
Fixed
- Lifetime validation for scoped services requested from root scope.
The validation was executed only at the expression tree building phase, so an already built scoped factory invoked on the root scope was able to bypass the lifetime validation and store the instance as a singleton. Now the validation runs at every request.
Stashbox v3.6.0
Added
- Parameterized factory delegates. Read more. Also, here is the list of the new factory configuration methods.
- Multiple conditions from the same type are now combined with OR logical operator. Read more.
- Named version of the
.WhenDecoratedServiceIs()
decorator condition. Read more.
Deprecated
.InjectMember()
registration configuration option..WithDependencyBindig()
should be used instead. Read more.
Removed
- The
GetRegistrationOrDefault(type, resolutionContext, name)
method of theIRegistrationRepository
interface. - Some properties of the
RegistrationContext
class were moved to internal visibility.
Stashbox v3.5.1
- Bugfix: When a singleton registration had been replaced with
.ReplaceExisting()
, the container still used the old instance. #98
Stashbox v3.5.0
- Assembly scanning:
- Added option to filter service types and disable self registration.
- Recognize generic definitions.
- Added support to covariant/contravariant generic type resolution.
- Bugfix: Services with named scope lifetime were not choosed right from the registration repo.
Stashbox v3.4.0
- Added the core components of multitenant functionality.
- Throw
ObjectDisposedException
when the container or scope is used after disposal.
Stashbox v3.3.0
- Added the option to rebuild singletons in child container with dependencies overridden in it.
- Fix: Singleton instances were built when the Validate() was called, now just the expression is generated for them.
Stashbox v3.2.9
- Added the option to replace a registration only if an existing one is registered with the same type or name.
Stashbox v3.2.8
- Switch to license expression in nuget package.
Stashbox v3.2.7
- Minor bugfixes.
Stashbox v3.2.6
- The Validate() method now throws an AggregateException containing all the underlying exceptions.
- Minor bugfixes.