Esempio n. 1
0
        void ICompactSerializable.Deserialize(CompactReader reader)
        {
            lock (this)
            {
                Value    = reader.ReadObject();
                _bitset  = new BitSet(reader.ReadByte());
                _evh     = EvictionHint.ReadEvcHint(reader);
                _exh     = ExpirationHint.ReadExpHint(reader);
                _grpInfo = GroupInfo.ReadGrpInfo(reader);

                _syncDependency = reader.ReadObject() as CacheSyncDependency;

                _queryInfo         = (Hashtable)reader.ReadObject();
                _keysDependingOnMe = (HashVector)reader.ReadObject();
                _size        = reader.ReadInt64();
                lockMetaInfo = reader.ReadObject() as LockMetaInfo;

                _version           = reader.ReadUInt64();
                _creationTime      = reader.ReadDateTime();
                _lastModifiedTime  = reader.ReadDateTime();
                ResyncProviderName = reader.ReadObject() as string;
                _priorityValue     = (CacheItemPriority)reader.ReadInt32();
                ProviderName       = reader.ReadObject() as string;
                _type = reader.ReadObject() as string;
                _itemUpdateListener  = reader.ReadObject() as ArrayList;
                _itemRemovedListener = reader.ReadObject() as ArrayList;
            }
        }
Esempio n. 2
0
 void ICompactSerializable.Deserialize(CompactReader reader)
 {
     lock (this)
     {
         Value             = reader.ReadObject();
         _bitset           = new BitSet(reader.ReadByte());
         _evh              = EvictionHint.ReadEvcHint(reader);
         _exh              = ExpirationHint.ReadExpHint(reader);
         _queryInfo        = (Hashtable)reader.ReadObject();
         _size             = reader.ReadInt64();
         lockMetaInfo      = reader.ReadObject() as LockMetaInfo;
         _creationTime     = reader.ReadDateTime();
         _lastModifiedTime = reader.ReadDateTime();
         _priorityValue    = (CacheItemPriority)reader.ReadInt32();
         _type             = reader.ReadObject() as string;
     }
 }