Esempio n. 1
0
        public IEnumerable <HistoryEvent> TimerStartFailedGraph(Identity timerId, string cause)
        {
            var historyEvents = new List <HistoryEvent>();
            var eventIds      = EventIds.TimerStartFailedIds(ref _currentEventId);

            historyEvents.Add(new HistoryEvent()
            {
                EventType = EventType.StartTimerFailed,
                EventId   = eventIds.EventId(EventIds.Failed),
                StartTimerFailedEventAttributes = new StartTimerFailedEventAttributes()
                {
                    TimerId = timerId.Id,
                    Cause   = cause
                },
            });

            return(historyEvents);
        }