public CurrentlyExecutingJobDto(IJobExecutionContext context) { FireInstanceId = context.FireInstanceId; FireTime = context.FireTimeUtc; Trigger = new KeyDto(context.Trigger.Key); Job = new KeyDto(context.JobDetail.Key); JobRunTime = context.JobRunTime; RefireCount = context.RefireCount; Recovering = context.Recovering; if (context.Recovering) { RecoveringTrigger = new KeyDto(context.RecoveringTriggerKey); } }