示例#1
0
 protected BaseDataObjectVersion(byte[] id,
                                 byte[] chunkID,
                                 BaseDataObject baseDataObject)
 {
     if (baseDataObject == null)
     {
         throw new ArgumentNullException("baseDataObject");
     }
     this.id               = id;
     this.chunkID          = chunkID;
     this.baseDataObject   = baseDataObject;
     this.previousVersions = new Dictionary <byte[], BaseDataObjectVersion> (baseDataObject.Versions);
 }
示例#2
0
 public void AddVolatileData(BaseDataObject objRef)
 {
     lock (syncVolatileData)
         volatileData.Add(objRef);
     //Console.Write ("*");
 }