BlobsStorage Class

Definition

Implements IStorage using Azure Storage Blobs.

public class BlobsStorage : Microsoft.Bot.Builder.IStorage
type BlobsStorage = class
    interface IStorage
Public Class BlobsStorage
Implements IStorage
Inheritance
BlobsStorage
Implements

Remarks

This class uses a single Azure Storage Blob Container. Each entity or IStoreItem is serialized into a JSON string and stored in an individual text blob. Each blob is named after the store item key, which is encoded so that it conforms a valid blob name. If an entity is an IStoreItem, the storage object will set the entity's ETag property value to the blob's ETag upon read. Afterward, an BlobRequestConditions with the ETag value will be generated during Write. New entities start with a null ETag.

Constructors

BlobsStorage(String, String, JsonSerializer)

Initializes a new instance of the BlobsStorage class.

BlobsStorage(String, String, StorageTransferOptions, JsonSerializer)

Initializes a new instance of the BlobsStorage class.

Methods

DeleteAsync(String[], CancellationToken)

Deletes entity blobs from the configured container.

ReadAsync(String[], CancellationToken)

Retrieve entities from the configured blob container.

WriteAsync(IDictionary<String,Object>, CancellationToken)

Stores a new entity in the configured blob container.

Extension Methods

ReadAsync<TStoreItem>(IStorage, String[], CancellationToken)

Gets and strongly types a collection of IStoreItem objects from state storage.

Applies to