This commit is contained in:
Janus C. H. Knudsen 2026-01-10 20:39:17 +01:00
parent 54b057886c
commit 7fc1ae0650
204 changed files with 4345 additions and 134 deletions

View file

@ -0,0 +1,25 @@
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
namespace PlanTempus.Core.Telemetry;
/// <summary>
/// Signal telemetry der bruges til at stoppe SeqBackgroundService gracefully.
/// Når denne læses fra channel, stopper servicen efter at have processeret alle tidligere beskeder.
/// </summary>
public class StopTelemetry : ITelemetry
{
public DateTimeOffset Timestamp { get; set; }
public string Sequence { get; set; }
public TelemetryContext Context { get; } = new TelemetryContext();
public IExtension Extension { get; set; }
public ITelemetry DeepClone() => new StopTelemetry();
public void Sanitize() { }
public void SerializeData(ISerializationWriter serializationWriter) { }
}