mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
all services are singleton by default.
This commit is contained in:
parent
8bdf8c31f0
commit
763df726f0
12 changed files with 5 additions and 34 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue