UpdateProvider for Update is now injected

This commit is contained in:
Mark McDowall 2012-12-17 23:14:50 -08:00
parent fcefb3f762
commit 48114ee6cc
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using NLog; using NLog;
using Ninject;
using NzbDrone.Common; using NzbDrone.Common;
namespace NzbDrone.Update.Providers namespace NzbDrone.Update.Providers
@ -16,6 +17,7 @@ namespace NzbDrone.Update.Providers
private readonly IISProvider _iisProvider; private readonly IISProvider _iisProvider;
private static readonly Logger logger = LogManager.GetCurrentClassLogger(); private static readonly Logger logger = LogManager.GetCurrentClassLogger();
[Inject]
public UpdateProvider(DiskProvider diskProvider, ServiceProvider serviceProvider, public UpdateProvider(DiskProvider diskProvider, ServiceProvider serviceProvider,
ProcessProvider processProvider, EnvironmentProvider environmentProvider, IISProvider iisProvider) ProcessProvider processProvider, EnvironmentProvider environmentProvider, IISProvider iisProvider)
{ {