refactor(Factory): rename Instance as Shared

This commit is contained in:
tekh 2025-10-23 10:19:59 +02:00
parent ea2340974a
commit 10ff9b9745

View File

@ -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<IServiceProvider> _lazyServiceProvider;
@ -18,7 +18,6 @@ namespace DigitalData.Core.Abstractions
public Factory()
{
_serviceCollection = new ServiceCollection();
_lazyServiceProvider = new Lazy<IServiceProvider>(() => _serviceCollection.BuildServiceProvider());
}