Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TurnState Class

Definition

Namespace:
Microsoft.Agents.Builder.State
Assembly:
Microsoft.Agents.Builder.dll
Package:
Microsoft.Agents.Builder v1.4.83

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Manages a collection of AgentState and provides ability to load and save in parallel.

public class TurnState : Microsoft.Agents.Builder.State.ITurnState
type TurnState = class
 interface ITurnState
Public Class TurnState
Implements ITurnState
Inheritance
TurnState
Implements

Constructors

Name Description
TurnState(IAgentState[])

Initializes a new instance of the TurnState class.

TurnState(IStorage, IAgentState[])

Creates AgentStateSet with default ConversationState and UserState

Properties

Name Description
Conversation
Private
Temp
User

Methods

Name Description
Add(IAgentState)
ClearState(String)
DeleteValue(String)
GetScope(String)
GetScope<T>()
GetValue<T>(String, Func<T>)
HasValue(String)
LoadStateAsync(ITurnContext, Boolean, CancellationToken)

Load all AgentState records in parallel.

SaveStateAsync(ITurnContext, Boolean, CancellationToken)

Save All AgentState changes in parallel.

SetValue(String, Object)
TryGetScope<T>(T)

Applies to


Feedback

Was this page helpful?