AzureBlobStorage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This class is deprecated. Please use BlobsStorage from Microsoft.Bot.Builder.Azure.Blobs instead.
Implements IStorage using Azure Blob Storage.
[System.Obsolete("This class is deprecated. Please use BlobsStorage from Microsoft.Bot.Builder.Azure.Blobs instead.")]
public class AzureBlobStorage : Microsoft.Bot.Builder.IStorage
[<System.Obsolete("This class is deprecated. Please use BlobsStorage from Microsoft.Bot.Builder.Azure.Blobs instead.")>]
type AzureBlobStorage = class
interface IStorage
Public Class AzureBlobStorage
Implements IStorage
- Inheritance
-
AzureBlobStorage
- Attributes
- 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 Microsoft.WindowsAzure.Storage.AccessCondition with the ETag value will be generated during Write. New entities start with a null ETag.
Constructors
AzureBlobStorage(CloudStorageAccount, String, JsonSerializer) |
Initializes a new instance of the AzureBlobStorage class. |
AzureBlobStorage(CloudStorageAccount, String) |
Initializes a new instance of the AzureBlobStorage class. |
AzureBlobStorage(String, String) |
Initializes a new instance of the AzureBlobStorage 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. |