1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Implemented experimental Script Console for debugging with editor in the diag ui.

This commit is contained in:
Taloth Saldono
2019-08-19 20:37:27 +02:00
parent 031371652b
commit 94f8e38d5a
36 changed files with 1890 additions and 1 deletions
@@ -0,0 +1,25 @@
using NLog;
using NzbDrone.Common.Composition;
namespace NzbDrone.Core.Diagnostics
{
public class ScriptContext
{
private readonly IContainer _container;
private readonly Logger _logger;
public ScriptContext(IContainer container, Logger logger)
{
_container = container;
_logger = logger;
}
public Logger Logger => _logger;
public T Resolve<T>()
where T : class
{
return _container.Resolve<T>();
}
}
}