all services are singleton by default.

This commit is contained in:
Keivan Beigi 2013-05-29 18:33:20 -07:00
parent 8bdf8c31f0
commit 763df726f0
12 changed files with 5 additions and 34 deletions

View file

@ -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)