private long GetMilliSecondsToNextTrigger(ITrigger trigger)
 {
     var nextTrigger = trigger.GetNextTrigger(DateTime.Now);
     var duration = nextTrigger - DateTime.Now;
     return (long)duration.TotalMilliseconds;
 }