Skip to content

Instantly share code, notes, and snippets.

@JadynWong
JadynWong / CanaryTracer.cs
Created March 11, 2022 10:58 — forked from rappen/CanaryTracer.cs
CanaryTracer - writes IExecutionContext to Plugin Trace Log
/* ***********************************************************
* CanaryTracer.cs
* Found at: https://jonasr.app/canary
* Created by: Jonas Rapp https://jonasr.app/
* Get full solution: https://jonasr.app/2017/09/canary/
*
* Writes everything from an IExecutionContext to the Plugin Trace Log.
*
* Simple sample call:
* tracingservice.TraceContext(context);
public class LogonTime
{
public DayOfWeek DayOfWeek { get; set; }
public DateTime BeginTime { get; set; }
public DateTime EndTime { get; set; }
public LogonTime(DayOfWeek dayOfWeek, DateTime beginTime, DateTime endTime)
{
DayOfWeek = dayOfWeek;
BeginTime = beginTime;