~ruther/NosSmooth

63fccd75bffe9546c44b5702ff595524f0e833a6 — Rutherther 2 years ago 2131852
fix(core): make stateful repository return the correct type
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) =>

Do not follow this link