Share via


MemoryStorage Class

Definition

A storage layer that uses an in-memory dictionary.

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

Constructors

MemoryStorage(Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

Methods

DeleteAsync(String[], CancellationToken)

Deletes storage items from storage.

ReadAsync(String[], CancellationToken)

Reads storage items from storage.

WriteAsync(IDictionary<String,Object>, CancellationToken)

Writes storage items to storage.

Extension Methods

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

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

Applies to