From 73146982c8ee9fae58c1a9beed5c70ef2fc70782 Mon Sep 17 00:00:00 2001
From: Piotr Wachulec
Date: Wed, 24 Apr 2024 10:01:50 +0200
Subject: [PATCH] Remove tag manager service from time trigger fcn
---
.../VMStartStop/TagManager/API/TagManagerTimeTrigger.cs | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs b/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs
index 84fa54a..7459570 100644
--- a/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs
+++ b/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs
@@ -1,6 +1,5 @@
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;
-using MyCo.TagManager.Application;
using MyCo.TagManager.Application.Commands;
using System.Text.Json;
@@ -9,12 +8,10 @@ namespace MyCo.TagManager.API;
public class TagManagerTimeTrigger
{
private readonly ILogger _logger;
- private readonly ITagManagerService _tagManagerService;
- public TagManagerTimeTrigger(ILoggerFactory loggerFactory, ITagManagerService tagManagerService)
+ public TagManagerTimeTrigger(ILoggerFactory loggerFactory)
{
_logger = loggerFactory.CreateLogger();
- _tagManagerService = tagManagerService;
}
[Function("TagManager")]
@@ -25,9 +22,6 @@ public string Run([TimerTrigger("0 */15 * * * *")] TimerInfo myTimer)
_logger.LogInformation($"Log triggered at: {myTimer.ScheduleStatus.Last}");
- _logger.LogInformation("Processing tags");
- _logger.LogInformation("Tags processed");
-
if (myTimer.ScheduleStatus is not null)
{
_logger.LogInformation($"Next timer schedule at: {myTimer.ScheduleStatus.Next}");