UpdateProvider for Update is now injected

pull/4/head
Mark McDowall 12 years ago
parent fcefb3f762
commit 48114ee6cc

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

Loading…
Cancel
Save