Ejemplo n.º 1
0
 public void UpdateOrPut(LiveEntry liveEntry)
 {
     lock (this.m_Entries)
     {
         var existing = this.m_Entries.Where(x => x.Key == liveEntry.Key).ToArray();
         this.m_Entries.Add(liveEntry);
         foreach (var e in existing)
             this.m_Entries.Remove(e);
     }
 }
Ejemplo n.º 2
0
        public void Put(LiveEntry liveEntry)
        {
            if (liveEntry == null)
            {
                throw new ArgumentNullException("serializedEntry");
            }

            lock (this.m_Entries)
            {
                this.m_Entries.Add(liveEntry);
            }
        }
Ejemplo n.º 3
0
 public void UpdateOrPut(LiveEntry liveEntry)
 {
     lock (this.m_Entries)
     {
         var existing = this.m_Entries.Where(x => x.Key == liveEntry.Key).ToArray();
         this.m_Entries.Add(liveEntry);
         foreach (var e in existing)
         {
             this.m_Entries.Remove(e);
         }
     }
 }
Ejemplo n.º 4
0
        public void Put(LiveEntry liveEntry)
        {
            if (liveEntry == null)
            {
                throw new ArgumentNullException("serializedEntry");
            }

            lock (this.m_Entries)
            {
                this.m_Entries.Add(liveEntry);
            }
        }