Skip to content

Object Storage

Robin Rodricks edited this page Jul 15, 2026 · 5 revisions

Providers

API

All of the API methods are defined in the IStore interface.

However Azure Blob Storage supports blob leasing, shared access signatures, and implements IAzureBlobStorage that extends the functionality further.

Getting Started

All the storage implementations can be created directly using factory API in the factory classes.

You can also use connection strings to create blob storage instances. Connection strings are often useful if you want to completely abstract yourself from the underlying implementation. Please read the appropriate implementation details for connection string details.

For instance, to create an instance of Azure Blob Storage provider you could write:

IStore storage = StorageFactory.FromConnectionString("azure.blobs://...parameters...");

In this example we create an Azure blob storage, then upload and download a text string to a blob.

    IStore storage = AzureBlobStorage.FromSharedKey("storage name","storage key");

    // upload it
    await store.SetText("mycontainer/someid", "test content");

    // download it
    string content = await store.GetText("mycontainer/someid");

Clone this wiki locally