// Token: 0x060006F4 RID: 1780 RVA: 0x0002C4B8 File Offset: 0x0002A6B8
        public static void Show(Dictionary <string, int> warningEngines, Dictionary <string, int> reachedEngines)
        {
            if (warningEngines == null)
            {
                throw new ArgumentNullException("warningEngines");
            }
            if (reachedEngines == null)
            {
                throw new ArgumentNullException("reachedEngines");
            }
            bool isWarning = reachedEngines.Count == 0;
            Guid typeId    = (reachedEngines.Count > 0) ? PollerLimitNotificationItemDAL.PollerLimitReachedNotificationTypeGuid : PollerLimitNotificationItemDAL.PollerLimitWarningNotificationTypeGuid;

            PollerLimitNotificationItemDAL.EnginesStatus enginesStatus = new PollerLimitNotificationItemDAL.EnginesStatus(warningEngines, reachedEngines);
            string description = enginesStatus.Serialize();
            PollerLimitNotificationItemDAL item = PollerLimitNotificationItemDAL.GetItem();
            string url = "javascript:SW.Core.SalesTrigger.ShowPollerLimitPopupAsync();";

            if (item == null)
            {
                NotificationItemDAL.Insert(PollerLimitNotificationItemDAL.PollerStatusNotificationItemId, typeId, PollerLimitNotificationItemDAL.GetNotificationMessage(isWarning), description, false, url, null, null);
                return;
            }
            PollerLimitNotificationItemDAL.EnginesStatus value = new PollerLimitNotificationItemDAL.EnginesStatus(item.Description);
            if (enginesStatus.Extends(value))
            {
                item.SetNotAcknowledged();
            }
            item.TypeId      = typeId;
            item.Description = description;
            item.Url         = url;
            item.Title       = PollerLimitNotificationItemDAL.GetNotificationMessage(isWarning);
            item.Update();
        }
        public static void Show(
            Dictionary <string, int> warningEngines,
            Dictionary <string, int> reachedEngines)
        {
            if (warningEngines == null)
            {
                throw new ArgumentNullException(nameof(warningEngines));
            }
            if (reachedEngines == null)
            {
                throw new ArgumentNullException(nameof(reachedEngines));
            }
            bool isWarning = reachedEngines.Count == 0;
            Guid typeId    = reachedEngines.Count > 0 ? PollerLimitNotificationItemDAL.PollerLimitReachedNotificationTypeGuid : PollerLimitNotificationItemDAL.PollerLimitWarningNotificationTypeGuid;

            PollerLimitNotificationItemDAL.EnginesStatus enginesStatus1 = new PollerLimitNotificationItemDAL.EnginesStatus(warningEngines, reachedEngines);
            string description = enginesStatus1.Serialize();
            PollerLimitNotificationItemDAL notificationItemDal = PollerLimitNotificationItemDAL.GetItem();
            string url = "javascript:SW.Core.SalesTrigger.ShowPollerLimitPopupAsync();";

            if (notificationItemDal == null)
            {
                NotificationItemDAL.Insert(PollerLimitNotificationItemDAL.PollerStatusNotificationItemId, typeId, PollerLimitNotificationItemDAL.GetNotificationMessage(isWarning), description, false, url, new DateTime?(), (string)null);
            }
            else
            {
                PollerLimitNotificationItemDAL.EnginesStatus enginesStatus2 = new PollerLimitNotificationItemDAL.EnginesStatus(notificationItemDal.Description);
                if (enginesStatus1.Extends(enginesStatus2))
                {
                    notificationItemDal.SetNotAcknowledged();
                }
                notificationItemDal.TypeId      = typeId;
                notificationItemDal.Description = description;
                notificationItemDal.Url         = url;
                notificationItemDal.Title       = PollerLimitNotificationItemDAL.GetNotificationMessage(isWarning);
                notificationItemDal.Update();
            }
        }
 public bool Extends(PollerLimitNotificationItemDAL.EnginesStatus value)
 {
     return(value == null || this.WarningEngines.Any <KeyValuePair <string, int> >((Func <KeyValuePair <string, int>, bool>)(engine => !value.WarningEngines.ContainsKey(engine.Key))) || this.LimitReachedEngines.Any <KeyValuePair <string, int> >((Func <KeyValuePair <string, int>, bool>)(engine => !value.LimitReachedEngines.ContainsKey(engine.Key))));
 }