mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 21:12:43 +02:00
all services are singleton by default.
This commit is contained in:
@@ -86,9 +86,9 @@ namespace NzbDrone.Common.Composition
|
||||
_container.Register(registrationType, instance);
|
||||
}
|
||||
|
||||
public void RegisterAll(Type registrationType, IEnumerable<Type> implementationList)
|
||||
public void RegisterAllAsSingleton(Type registrationType, IEnumerable<Type> implementationList)
|
||||
{
|
||||
_container.RegisterMultiple(registrationType, implementationList);
|
||||
_container.RegisterMultiple(registrationType, implementationList).AsSingleton();
|
||||
}
|
||||
|
||||
public bool IsTypeRegistered(Type type)
|
||||
|
Reference in New Issue
Block a user