Share via


IBotDataStore<T>.LoadAsync Method

Definition

Return BotData with Data pointing to a JObject or an empty BotData() record with ETag:""

public System.Threading.Tasks.Task<T> LoadAsync (Microsoft.Bot.Builder.Dialogs.IAddress key, Microsoft.Bot.Builder.Dialogs.Internals.BotStoreType botStoreType, System.Threading.CancellationToken cancellationToken);
abstract member LoadAsync : Microsoft.Bot.Builder.Dialogs.IAddress * Microsoft.Bot.Builder.Dialogs.Internals.BotStoreType * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function LoadAsync (key As IAddress, botStoreType As BotStoreType, cancellationToken As CancellationToken) As Task(Of T)

Parameters

key
IAddress

The key.

botStoreType
BotStoreType

The bot store type.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<T>

Bot record that is stored for this key, or "empty" bot record ready to be stored

Applies to