DialogMemoryScope class

DialogMemoryScope maps "dialog" -> dc.parent.activeDialog.state || dc.activeDialog.state

Extends

Constructors

DialogMemoryScope()

Initializes a new instance of the DialogMemoryScope class.

Inherited Properties

includeInSnapshot

Gets a value indicating whether this memory should be included in snapshot.

name

Gets or sets name of the scope

Methods

getMemory(DialogContext)

Gets the backing memory for this scope.

setMemory(DialogContext, object)

Changes the backing object for the memory scope.

Inherited Methods

delete(DialogContext)

Deletes the backing memory for a scope.

load(DialogContext)

Loads a scopes backing memory at the start of a turn.

saveChanges(DialogContext)

Saves a scopes backing memory at the end of a turn.

Constructor Details

DialogMemoryScope()

Initializes a new instance of the DialogMemoryScope class.

new DialogMemoryScope()

Inherited Property Details

includeInSnapshot

Gets a value indicating whether this memory should be included in snapshot.

includeInSnapshot: boolean

Property Value

boolean

Inherited From MemoryScope.includeInSnapshot

name

Gets or sets name of the scope

name: string

Property Value

string

Inherited From MemoryScope.name

Method Details

getMemory(DialogContext)

Gets the backing memory for this scope.

function getMemory(dc: DialogContext): object

Parameters

dc
DialogContext

The DialogContext object for this turn.

Returns

object

The memory for the scope.

setMemory(DialogContext, object)

Changes the backing object for the memory scope.

function setMemory(dc: DialogContext, memory: object)

Parameters

dc
DialogContext

The DialogContext object for this turn.

memory

object

Memory object to set for the scope.

Inherited Method Details

delete(DialogContext)

Deletes the backing memory for a scope.

function delete(_dc: DialogContext): Promise<void>

Parameters

_dc
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From MemoryScope.delete

load(DialogContext)

Loads a scopes backing memory at the start of a turn.

function load(_dc: DialogContext): Promise<void>

Parameters

_dc
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From MemoryScope.load

saveChanges(DialogContext)

Saves a scopes backing memory at the end of a turn.

function saveChanges(_dc: DialogContext): Promise<void>

Parameters

_dc
DialogContext

Current dialog context.

Returns

Promise<void>

Inherited From MemoryScope.saveChanges