Skip to content

Instantly share code, notes, and snippets.

@awithy
Created January 26, 2012 17:41
Show Gist options
  • Save awithy/1683966 to your computer and use it in GitHub Desktop.
Save awithy/1683966 to your computer and use it in GitHub Desktop.
IBlobStorageService
public interface IBlobStorageService
{
void Store(BlobUri blobUri, byte[] data);
void Delete(BlobUri uri);
bool Exists(BlobUri uri);
void BlockUpload(BlobUri uri, string fileToUpload);
void BlockDownload(BlobUri uri, string filePath);
void DownloadPageBlob(BlobUri blobUri, string filePath);
string Download(BlobUri blobUri);
void DeleteContainerIfExists(ContainerUri containerUri);
void CreateContainer(ContainerUri containerUri);
void CreatePageBlob(BlobUri blobUri);
void PutPage(BlobUri blobUri, byte[] bytes);
int GetBlobCount(ContainerName containerName);
long GetPageBlobSize(BlobUri blobUri);
bool ContainerExists(BlobUri blobUri);
BlobUri GetFirstBlobByPrefix(ContainerUri containerUri, string prefix);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment