|
|
@ -17,8 +17,6 @@ namespace NzbDrone.Common.Composition
|
|
|
|
|
|
|
|
|
|
|
|
protected ContainerBuilderBase(IStartupContext args, params string[] assemblies)
|
|
|
|
protected ContainerBuilderBase(IStartupContext args, params string[] assemblies)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_loadedTypes = new List<Type>();
|
|
|
|
_loadedTypes = new List<Type>();
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var assembly in assemblies)
|
|
|
|
foreach (var assembly in assemblies)
|
|
|
@ -55,8 +53,6 @@ namespace NzbDrone.Common.Composition
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var implementations = Container.GetImplementations(contractType).Where(c => !c.IsGenericTypeDefinition).ToList();
|
|
|
|
var implementations = Container.GetImplementations(contractType).Where(c => !c.IsGenericTypeDefinition).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (implementations.Count == 0)
|
|
|
|
if (implementations.Count == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|