Exemplo n.º 1
0
        public void AddNotification(AlertLevel level, string message, string identifer, NotificationRequest notificationCombiner)
        {
            Notification not = new Notification()
            {
                AlertLevel = level,
                Message    = new List <string>(new [] { message }),
                Identifer  = identifer,
                DuplicateNotificationRequest = notificationCombiner
            };

            if (m_dicNotifications.ContainsKey(identifer))
            {
                m_dicNotifications[identifer] = Notification.Combine(m_dicNotifications[identifer], not);
            }
            else
            {
                m_dicNotifications[identifer] = not;
            }
        }