fixed update again.

This commit is contained in:
kay.one
2013-08-15 20:32:23 -07:00
parent 06f5ff7cb8
commit 2f20aeaec5
4 changed files with 13 additions and 9 deletions
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Messaging;
using TinyIoC;
@@ -14,8 +15,10 @@ namespace NzbDrone.Common.Composition
public IContainer Container { get; private set; }
protected ContainerBuilderBase(params string[] assemblies)
protected ContainerBuilderBase(IStartupArguments args, params string[] assemblies)
{
_loadedTypes = new List<Type>();
foreach (var assembly in assemblies)
@@ -25,6 +28,7 @@ namespace NzbDrone.Common.Composition
Container = new Container(new TinyIoCContainer(), _loadedTypes);
AutoRegisterInterfaces();
Container.Register(args);
}
private void AutoRegisterInterfaces()