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 allowsnull
results. - 0️⃣ A new
ResolveOrDefault()
method that allowsnull
results. - 📇
ValueTuple<,>
metadata support.
🔄 Changed
- 0️⃣
Resolve()
with thenullResultAllowed
parameter became obsolete, it was replaced byResolveOrDefault()
. - Each
ResolveFactory<>()
method became obsolete as their functionality is equivalent toResolve<Func<>>()
.
✂ Removed
nullResultAllowed
parameter ofResolveFactory()
.