WIP
This commit is contained in:
parent
54b057886c
commit
7fc1ae0650
204 changed files with 4345 additions and 134 deletions
25
PlanTempus.Core/Telemetry/StopTelemetry.cs
Normal file
25
PlanTempus.Core/Telemetry/StopTelemetry.cs
Normal 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) { }
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue