-
Notifications
You must be signed in to change notification settings - Fork 24
Storage API
The LightBlue API covers core elements of using block blobs. It does not provide all methods Azure exposes for managing block blobs and does not provide any support for page blobs (PRs adding support for missing features welcome).
The LightBlue APIs are largely similar to the Azure APIs in keeping with the goal of being a low overhead wrapper when used in production. In most cases once the initial storage instance is obtained only the types used by client code must be changed.
The IAzureStorage
interface is the entry point into the storage APIs. It provides the method CreateAzureBlobStorageClient
which creates in instance of IAzureBlobStorage
. Each IAzureStorage
instance is specific to a storage account. This are created by a lambda registered with Autofac which has the signature Func<string, IAzureStorage>. Calling this lambda passing the storage connection string will provide an appropriately configured instance for your environment.
This abstraction is analogous to the Azure CloudStorageAccount
class.
The IAzureBlobStorage
interface supports working with blob storage within a specific storage account. It provides the GetAzureBlobContainer(string)
method which takes a container name and returns an instance of IAzureBlobContainer
.
This abstraction is analogous to the Azure CloudBlobClient
class.