Condividi tramite


AutoSaveStateMiddleware Constructors

Definition

Overloads

AutoSaveStateMiddleware(IAgentState[])

Initializes a new instance of the AutoSaveStateMiddleware class.

AutoSaveStateMiddleware(ITurnState)

Initializes a new instance of the AutoSaveStateMiddleware class with a list of state management objects managed by this object.

AutoSaveStateMiddleware(Boolean, IAgentState[])

Allows for optionally auto-loading AgentState at turn start.

AutoSaveStateMiddleware(IAgentState[])

Initializes a new instance of the AutoSaveStateMiddleware class.

public AutoSaveStateMiddleware(params Microsoft.Agents.Builder.State.IAgentState[] agentStates);
new Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware : Microsoft.Agents.Builder.State.IAgentState[] -> Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware
Public Sub New (ParamArray agentStates As IAgentState())

Parameters

agentStates
IAgentState[]

initial list of AgentState objects to manage.

Applies to

AutoSaveStateMiddleware(ITurnState)

Initializes a new instance of the AutoSaveStateMiddleware class with a list of state management objects managed by this object.

public AutoSaveStateMiddleware(Microsoft.Agents.Builder.State.ITurnState turnState);
new Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware : Microsoft.Agents.Builder.State.ITurnState -> Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware
Public Sub New (turnState As ITurnState)

Parameters

turnState
ITurnState

The state management objects managed by this object.

Applies to

AutoSaveStateMiddleware(Boolean, IAgentState[])

Allows for optionally auto-loading AgentState at turn start.

public AutoSaveStateMiddleware(bool autoLoad, params Microsoft.Agents.Builder.State.IAgentState[] agentStates);
new Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware : bool * Microsoft.Agents.Builder.State.IAgentState[] -> Microsoft.Agents.Builder.Compat.AutoSaveStateMiddleware
Public Sub New (autoLoad As Boolean, ParamArray agentStates As IAgentState())

Parameters

autoLoad
Boolean
agentStates
IAgentState[]

Applies to