|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using NLog;
|
|
|
|
|
using NzbDrone.Common;
|
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
@ -10,19 +8,12 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
|
{
|
|
|
|
|
public class AppRestartJob : IJob
|
|
|
|
|
{
|
|
|
|
|
private readonly EnvironmentProvider _environmentProvider;
|
|
|
|
|
private readonly ProcessProvider _processProvider;
|
|
|
|
|
private readonly ServiceProvider _serviceProvider;
|
|
|
|
|
private readonly IISProvider _iisProvider;
|
|
|
|
|
|
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
public AppRestartJob(EnvironmentProvider environmentProvider, ProcessProvider processProvider,
|
|
|
|
|
ServiceProvider serviceProvider, IISProvider iisProvider)
|
|
|
|
|
public AppRestartJob(IISProvider iisProvider)
|
|
|
|
|
{
|
|
|
|
|
_environmentProvider = environmentProvider;
|
|
|
|
|
_processProvider = processProvider;
|
|
|
|
|
_serviceProvider = serviceProvider;
|
|
|
|
|
_iisProvider = iisProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|