Skip to content

Releases: z4kn4fein/stashbox

Stashbox v3.6.1

16 Mar 22:40
Compare
Choose a tag to compare

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

25 Feb 01:05
Compare
Choose a tag to compare

API changes

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 the IRegistrationRepository interface.
  • Some properties of the RegistrationContext class were moved to internal visibility.

Stashbox v3.5.1

19 Feb 03:22
Compare
Choose a tag to compare
  • Bugfix: When a singleton registration had been replaced with .ReplaceExisting(), the container still used the old instance. #98

Stashbox v3.5.0

29 Jan 18:17
Compare
Choose a tag to compare
  • 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

15 Nov 16:29
Compare
Choose a tag to compare
  • Added the core components of multitenant functionality.
  • Throw ObjectDisposedException when the container or scope is used after disposal.

Stashbox v3.3.0

05 Nov 11:41
Compare
Choose a tag to compare
  • 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

02 Nov 01:28
Compare
Choose a tag to compare
  • Added the option to replace a registration only if an existing one is registered with the same type or name.

Stashbox v3.2.8

17 Oct 18:16
Compare
Choose a tag to compare
  • Switch to license expression in nuget package.

Stashbox v3.2.7

16 Oct 19:31
Compare
Choose a tag to compare
  • Minor bugfixes.

Stashbox v3.2.6

16 Oct 14:21
Compare
Choose a tag to compare
  • The Validate() method now throws an AggregateException containing all the underlying exceptions.
  • Minor bugfixes.