refactor(Factory): rename Instance as Shared
This commit is contained in:
parent
ea2340974a
commit
10ff9b9745
@ -9,7 +9,7 @@ namespace DigitalData.Core.Abstractions
|
|||||||
{
|
{
|
||||||
public class Factory : IServiceProvider, IServiceCollection
|
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 IServiceCollection _serviceCollection = new ServiceCollection();
|
||||||
private readonly Lazy<IServiceProvider> _lazyServiceProvider;
|
private readonly Lazy<IServiceProvider> _lazyServiceProvider;
|
||||||
@ -18,7 +18,6 @@ namespace DigitalData.Core.Abstractions
|
|||||||
|
|
||||||
public Factory()
|
public Factory()
|
||||||
{
|
{
|
||||||
_serviceCollection = new ServiceCollection();
|
|
||||||
_lazyServiceProvider = new Lazy<IServiceProvider>(() => _serviceCollection.BuildServiceProvider());
|
_lazyServiceProvider = new Lazy<IServiceProvider>(() => _serviceCollection.BuildServiceProvider());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user