From 10ff9b9745d622ffb2d578eb4d884c927bdc2e86 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 23 Oct 2025 10:19:59 +0200 Subject: [PATCH] refactor(Factory): rename Instance as Shared --- DigitalData.Core.Abstractions/Factory.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DigitalData.Core.Abstractions/Factory.cs b/DigitalData.Core.Abstractions/Factory.cs index e42bc15..7ac6771 100644 --- a/DigitalData.Core.Abstractions/Factory.cs +++ b/DigitalData.Core.Abstractions/Factory.cs @@ -9,7 +9,7 @@ namespace DigitalData.Core.Abstractions { public class Factory : IServiceProvider, IServiceCollection { - public static readonly Factory Instance = new Factory(); + public static readonly Factory Shared = new Factory(); private readonly IServiceCollection _serviceCollection = new ServiceCollection(); private readonly Lazy _lazyServiceProvider; @@ -18,7 +18,6 @@ namespace DigitalData.Core.Abstractions public Factory() { - _serviceCollection = new ServiceCollection(); _lazyServiceProvider = new Lazy(() => _serviceCollection.BuildServiceProvider()); }