Skip to content

Releases

Stashbox v5.21.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 10 Aug 11:50

Changed

  • #260 DependencyResolverExtensions methods should declare object[] dependencyOverrides parameter as nullable

Stashbox v5.20.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 07 May 13:45

Changed

  • Consolidated the scoped/singleton service evaluation. When the evaluation fails with an exception, each subsequent resolution call will get the same exception.
  • Track for cyclic resolution attempts of scoped/singleton services even through service locator style resolution calls.
  • Refined exception messages.
  • Replaced the CircularDependencyException with ResolutionFailedException to lower the exception type redundancy.

Stashbox v5.19.3

Choose a tag to compare

@z4kn4fein z4kn4fein released this 24 Apr 22:44

Fixed

  • #230: Unintentional exception throwing upon unresolvable named resolution.

Stashbox v5.19.2

Choose a tag to compare

@z4kn4fein z4kn4fein released this 14 Apr 08:50

Fixed

  • #228: Optional value resolution with unknown type resolution

Stashbox v5.19.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 10 Apr 21:22

Fixed

  • #228: Nullable optional parameter resolution

Stashbox v5.19.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 30 Mar 20:09
c15a53e

Added

  • More configuration options for conforming to MS.DI extensions (net10.0, net9.0, and net8.0)
    • enabledForCollectionRequests switch for .WithNamedDependencyResolutionForUnNamedRequests() configuration option.
    • .WithIgnoreServicesWithUniversalNameForUniversalNamedRequests() configuration option.
    • .WithForceThrowWhenNamedDependencyIsNotResolvable() configuration option.
    • .OverrideResolutionFailedExceptionWith<>() configuration option.

Stashbox v5.18.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 26 Mar 14:44

Fixed

  • #213: Bug? Resolving Lazy or Func eagerly instantiates scoped/singleton wrapped services

Removed

  • PerScopedRequestLifetime lifetime.

Stashbox v5.17.1

Choose a tag to compare

@z4kn4fein z4kn4fein released this 18 Feb 11:28

Fixed

  • #183: ResolveAll() fails when service type hash collision. Thanks to @foriequal0 for the contribution.

Stashbox v5.17.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 20 Dec 15:19

Added

  • PreferEnumerableInCurrent option to ResolutionBehavior enum. When this option is used upon enumerable resolution the following applies:
    • When both Current and Parent behaviors are enabled, and the current container has the appropriate services, the resolution will prefer those and ignore the parent containers. When the current container doesn't have the requested services, the parent containers will serve the request.

Changed

  • Enumerable resolution requests across child-parent containers resulted in the wrong order. Now, the resulting collection contains the parent services first and the child services at the end of the collection.

Stashbox v5.16.0

Choose a tag to compare

@z4kn4fein z4kn4fein released this 21 Aug 12:49

Added

  • #165: A new Override type that provides more control over dependency overrides. Usage:
    var service = container.Resolve<IService>([ Override.Of(instance, "name") ]);
  • WithExceptionOverEmptyCollection() container configuration option to control whether the container should return an empty collection or throw a ResolutionFailedException when a collection of services is requested but the wrapped service type is not resolvable.

Changed

  • The .Configure() and .RegisterResolver() methods now return with the actual IStashboxContainer to allow a fluent call chain.