From 6cb926d6ef3dccdacd8b4ddaaf56674de05752f4 Mon Sep 17 00:00:00 2001 From: Simon G Date: Sat, 14 Nov 2020 00:53:04 +0100 Subject: [PATCH] - set lifestyle singleton for GBase --- GBase/Installers/GBaseInstaller.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GBase/Installers/GBaseInstaller.cs b/GBase/Installers/GBaseInstaller.cs index 902e7cd..7a21f4b 100644 --- a/GBase/Installers/GBaseInstaller.cs +++ b/GBase/Installers/GBaseInstaller.cs @@ -5,6 +5,7 @@ using GBase.Factories; using GBase.Interfaces; +using LightweightIocContainer; using LightweightIocContainer.Interfaces; using LightweightIocContainer.Interfaces.Installers; @@ -18,7 +19,7 @@ namespace GBase.Installers /// public void Install(IIocContainer container) { - container.Register(); + container.Register(Lifestyle.Singleton); container.Register(); //factories