Stashbox v5.2.0 Release Notes

Release Date: 2022-03-07 // about 2 years ago
  • 🛠 Fixed

    • Unable to resolve IHubContext. #114

    ➕ Added

    • Null-safety by enabling null-state analysis.
    • 0️⃣ Option to exclude a factory's result from dispose tracking, even if it would be tracked by default. This gives the ability to decide within the factory delegate that the result should be tracked or not. cs .Register<Service>(options => options .WithFactory<IRequestContext>(requestContext => requestContext.ExcludeFromTracking(/* get an existing or instantiate a new service */) ) );
    • 0️⃣ A new ResolveFactoryOrDefault() method that allows null results.
    • 0️⃣ A new ResolveOrDefault() method that allows null results.
    • 📇 ValueTuple<,> metadata support.

    🔄 Changed

    • 0️⃣ Resolve() with the nullResultAllowed parameter became obsolete, it was replaced by ResolveOrDefault().
    • Each ResolveFactory<>() method became obsolete as their functionality is equivalent to Resolve<Func<>>().

    ✂ Removed

    • nullResultAllowed parameter of ResolveFactory().