// Token: 0x06000E2A RID: 3626 RVA: 0x00035AB4 File Offset: 0x00033CB4
        private void UpdateInternal(NotificationLocation location, NotificationPayloadBase payload, Action <NotificationStatisticsValue, NotificationPayloadBase> doUpdate)
        {
            NotificationStatisticsKey   key   = new NotificationStatisticsKey(location, payload.GetType(), payload.EventType == QueryNotificationType.Reload);
            NotificationStatisticsValue orAdd = this.data.GetOrAdd(key, new NotificationStatisticsValue());

            doUpdate(orAdd, payload);
        }
Exemple #2
0
        // Token: 0x06000E33 RID: 3635 RVA: 0x00035B98 File Offset: 0x00033D98
        public override bool Equals(object obj)
        {
            NotificationStatisticsKey notificationStatisticsKey = obj as NotificationStatisticsKey;

            return(notificationStatisticsKey != null && (this.Location.Equals(notificationStatisticsKey.Location) && this.PayloadType.Equals(notificationStatisticsKey.PayloadType)) && this.IsReload.Equals(notificationStatisticsKey.IsReload));
        }
 internal NotificationStatisticsLogEvent(NotificationStatisticsEventType eventType, DateTime startTime, NotificationStatisticsKey key, NotificationStatisticsValue value)
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     this.eventType = eventType;
     this.startTime = startTime;
     this.key       = key;
     this.value     = value;
 }