1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 10:07:10 +00:00
Lidarr/NzbDrone.Core/Instrumentation/LogService.cs

30 lines
562 B
C#
Raw Normal View History

2013-02-23 19:38:25 +00:00
using System.Linq;
namespace NzbDrone.Core.Instrumentation
{
public interface ILogService
{
void DeleteAll();
void Trim();
}
public class LogService : ILogService
{
private readonly ILogRepository _logRepository;
2013-03-05 19:58:53 +00:00
public LogService(ILogRepository logRepository)
2013-02-23 19:38:25 +00:00
{
_logRepository = logRepository;
}
public void DeleteAll()
{
_logRepository.Purge();
}
public void Trim()
{
_logRepository.Trim();
}
}
}