From 6325128ac7f864a75c121f8f43e28c4ca2cd6531 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Thu, 31 Oct 2024 20:39:54 +0200 Subject: [PATCH] Added the game scope comment --- .../LauncherManager/LauncherManagerFactory.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Games/NexusMods.Games.MountAndBlade2Bannerlord/LauncherManager/LauncherManagerFactory.cs b/src/Games/NexusMods.Games.MountAndBlade2Bannerlord/LauncherManager/LauncherManagerFactory.cs index 1679597e5..4547d7685 100644 --- a/src/Games/NexusMods.Games.MountAndBlade2Bannerlord/LauncherManager/LauncherManagerFactory.cs +++ b/src/Games/NexusMods.Games.MountAndBlade2Bannerlord/LauncherManager/LauncherManagerFactory.cs @@ -7,6 +7,13 @@ namespace NexusMods.Games.MountAndBlade2Bannerlord.LauncherManager; +/// +/// The LauncherManager holds a state per game instance. +/// +/// (Aragas) +/// This could be replaced by introducing a game instance DI scope. +/// In that case the LauncherManager could be a scoped service and this factory would not be needed. +/// public sealed class LauncherManagerFactory { private readonly IServiceProvider _serviceProvider;