Moved logger to Trangasettings

This commit is contained in:
2023-07-30 17:08:43 +02:00
parent b4bef25a22
commit 000539d6a6
13 changed files with 107 additions and 120 deletions

View File

@ -1,5 +1,4 @@
using System.Net;
using Logging;
using Tranga.Connectors;
namespace Tranga.TrangaTasks;
@ -16,7 +15,7 @@ public class MonitorPublicationTask : TrangaTask
this.language = language;
}
protected override HttpStatusCode ExecuteTask(TaskManager taskManager, Logger? logger, CancellationToken? cancellationToken = null)
protected override HttpStatusCode ExecuteTask(TaskManager taskManager, CancellationToken? cancellationToken = null)
{
if (cancellationToken?.IsCancellationRequested ?? false)
return HttpStatusCode.RequestTimeout;