M Core/NosSmooth.Core/NosSmooth.Core.csproj => Core/NosSmooth.Core/NosSmooth.Core.csproj +2 -2
@@ 6,8 6,8 @@
<TargetFrameworks>net7.0;netstandard2.1</TargetFrameworks>
<Authors>Rutherther</Authors>
<Description>NosSmooth Core library allowing implementing nostale client, handling packets and commands.</Description>
- <VersionPrefix>3.4.0</VersionPrefix>
- <PackageReleaseNotes>Add possibility to add items to the stateful repository manually.</PackageReleaseNotes>
+ <VersionPrefix>3.4.1</VersionPrefix>
+ <PackageReleaseNotes>Fix StatefulInjector returning Func instead of the object.</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
M Core/NosSmooth.Core/Stateful/StatefulRepository.cs => Core/NosSmooth.Core/Stateful/StatefulRepository.cs +1 -1
@@ 71,7 71,7 @@ public class StatefulRepository
{
var objectDictionary = new ConcurrentDictionary<Type, object>();
objectDictionary.TryAdd
- (statefulEntityType, () => ActivatorUtilities.CreateInstance(services, statefulEntityType));
+ (statefulEntityType, ActivatorUtilities.CreateInstance(services, statefulEntityType));
return objectDictionary;
},
(_, objectDictionary) =>