Radarr/NzbDrone/Providers/ConsoleProvider.cs

29 lines
716 B
C#
Raw Normal View History

2011-10-07 03:37:41 +00:00
using System;
2011-10-13 02:24:30 +00:00
using NLog;
2011-10-07 03:37:41 +00:00
namespace NzbDrone.Providers
{
public class ConsoleProvider
{
2011-10-13 02:24:30 +00:00
private static readonly Logger Logger = LogManager.GetLogger("Host.ConsoleProvider");
2011-10-07 03:37:41 +00:00
public virtual void WaitForClose()
{
while (true)
{
2011-10-13 02:24:30 +00:00
Console.ReadLine();
2011-10-07 03:37:41 +00:00
}
}
public virtual void PrintHelp()
{
2011-10-13 02:24:30 +00:00
Logger.Info("Printing Help");
Console.WriteLine("Help");
}
public virtual void PrintServiceAlreadyExist()
{
Console.WriteLine("A service with the same name ({0}) already exists. Aborting installation", ServiceProvider.NzbDroneServiceName);
}
2011-10-07 03:37:41 +00:00
}
2011-10-07 06:57:43 +00:00
}