public IIndexedBlobStoreClient Create(string storeName, IIndexedBlobCache cache)
        {
            var table = _tableClient.GetTableReference(string.Format("{0}index", storeName));

            table.CreateIfNotExists();
            var container = _blobClient.GetContainerReference(string.Format("{0}-blobs", storeName));

            container.CreateIfNotExists();
            cache.CreateIfNotExists();
            return(new IndexedBlobStoreClient(new CloudIndexedBlobStore(container, table, cache)));
        }
예제 #2
0
 public CloudIndexedBlobStore(CloudBlobContainer container, CloudTable table, IIndexedBlobCache cache)
 {
     Container = container;
     Table     = table;
     Cache     = cache;
 }