mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-19 21:46:50 -04:00
signalr cleanup
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user