Ejemplo n.º 1
0
 private static void RemoveWorkFromProcessingDictionary(BlockBlobMetaInfo info)
 {
     lock (BlockBlobGarbageCollector.defragLock)
     {
         string key = info.GetKey();
         BlockBlobGarbageCollector.toDefragmentDict.Remove(key);
     }
 }
Ejemplo n.º 2
0
        private static DevStoreBlockBlobFileParameters AddInfoIfNotExists(BlockBlobMetaInfo blobInfo)
        {
            DevStoreBlockBlobFileParameters devStoreBlockBlobFileParameter;
            string key = blobInfo.GetKey();

            if (!BlockBlobDataManager.blobInfoMap.TryGetValue(key, out devStoreBlockBlobFileParameter))
            {
                lock (BlockBlobDataManager.blobInfoMap)
                {
                    if (!BlockBlobDataManager.blobInfoMap.TryGetValue(key, out devStoreBlockBlobFileParameter))
                    {
                        devStoreBlockBlobFileParameter = new DevStoreBlockBlobFileParameters();
                        BlockBlobDataManager.InitializeBlockBlobFileAttributes(blobInfo.BlobDirectory, devStoreBlockBlobFileParameter);
                        BlockBlobDataManager.blobInfoMap.Add(key, devStoreBlockBlobFileParameter);
                    }
                }
            }
            return(devStoreBlockBlobFileParameter);
        }