public IEnumerable <HistoryEvent> TimerCancellationFailedGraph(Identity timerId, string cause) { var historyEvents = new List <HistoryEvent>(); var eventIds = EventIds.CancellationFailedIds(ref _currentEventId); historyEvents.Add(new HistoryEvent() { EventType = EventType.CancelTimerFailed, EventId = eventIds.EventId(EventIds.Failed), CancelTimerFailedEventAttributes = new CancelTimerFailedEventAttributes() { TimerId = timerId.Id, Cause = cause } }); historyEvents.Add(new HistoryEvent() { EventType = EventType.TimerStarted, EventId = eventIds.EventId(EventIds.Started), TimerStartedEventAttributes = new TimerStartedEventAttributes() { TimerId = timerId.Id, StartToFireTimeout = ((long)20).ToString(), Control = (new TimerScheduleData() { TimerName = timerId.Name, IsARescheduleTimer = false }).ToJson() } }); return(historyEvents); }