From 49a7db6aeb7214e9d82b7c66d90cb059f69b5e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 13 Feb 2022 15:40:17 +0100 Subject: [PATCH] feat(game): make event dispatcher scoped --- Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs b/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs index 423d6c8..42ce1e9 100644 --- a/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs +++ b/Core/NosSmooth.Game/Extensions/ServiceCollectionExtensions.cs @@ -31,7 +31,7 @@ public static class ServiceCollectionExtensions serviceCollection .AddNostaleCore() .AddMemoryCache() - .TryAddSingleton(); + .TryAddScoped(); serviceCollection.TryAddSingleton(); serviceCollection -- 2.49.0