BotDataStoreBridge BotDataStoreBridge BotDataStoreBridge Class

Definition

This bridge class should be used during a migration of data from one BotDataStore to another

public class BotDataStoreBridge : Microsoft.Bot.Builder.Dialogs.Internals.IBotDataStore<Microsoft.Bot.Connector.BotData>
type BotDataStoreBridge = class
    interface IBotDataStore<BotData>
Public Class BotDataStoreBridge
Implements IBotDataStore(Of BotData)
Inheritance
BotDataStoreBridgeBotDataStoreBridgeBotDataStoreBridge
Implements

Remarks

It works by reading from both source and target stores and only writing data to the new store.

This allows live code to continue to work while a background job is migrating data from the source store to the target store.

To use: deploy your bot using this dual data store while a background job is migrating the data from the

source store to the target store. When the background migration job is done you can deploy your bot using the target store

NOTE: migration job should ignore precondition failures on write, because if the record already exists in the new store it was migrated

dynamically by the use of this class

Constructors

BotDataStoreBridge(IBotDataStore<BotData>, IBotDataStore<BotData>) BotDataStoreBridge(IBotDataStore<BotData>, IBotDataStore<BotData>) BotDataStoreBridge(IBotDataStore<BotData>, IBotDataStore<BotData>)

Methods

FlushAsync(IAddress, CancellationToken) FlushAsync(IAddress, CancellationToken) FlushAsync(IAddress, CancellationToken)
LoadAsync(IAddress, BotStoreType, CancellationToken) LoadAsync(IAddress, BotStoreType, CancellationToken) LoadAsync(IAddress, BotStoreType, CancellationToken)
SaveAsync(IAddress, BotStoreType, BotData, CancellationToken) SaveAsync(IAddress, BotStoreType, BotData, CancellationToken) SaveAsync(IAddress, BotStoreType, BotData, CancellationToken)

Applies to