1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-01 04:25:55 +00:00
Lidarr/NzbDrone.Core/Messaging/Commands/TestCommandExecutor.cs
2013-09-11 17:42:53 -07:00

23 lines
No EOL
600 B
C#

using System.Threading;
using NLog;
using NzbDrone.Core.Instrumentation;
namespace NzbDrone.Core.Messaging.Commands
{
public class TestCommandExecutor : IExecute<TestCommand>
{
private readonly Logger _logger;
public TestCommandExecutor(Logger logger)
{
_logger = logger;
}
public void Execute(TestCommand message)
{
_logger.ProgressInfo("Starting Test command. duration {0}", message.Duration);
Thread.Sleep(message.Duration);
_logger.ProgressInfo("Completed Test command");
}
}
}