~ruther/NosSmooth

49a7db6aeb7214e9d82b7c66d90cb059f69b5e3d — František Boháček 3 years ago af9cf5a
feat(game): make event dispatcher scoped
1 files changed, 1 insertions(+), 1 deletions(-)

M Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs
M Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs => Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs +1 -1
@@ 31,7 31,7 @@ public static class ServiceCollectionExtensions
        serviceCollection
            .AddNostaleCore()
            .AddMemoryCache()
            .TryAddSingleton<EventDispatcher>();
            .TryAddScoped<EventDispatcher>();
        serviceCollection.TryAddSingleton<Game>();

        serviceCollection

Do not follow this link