TurnState Class
Definition
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
- Derived
- Implements
Constructors
| TurnState(IAgentState[]) |
Initializes a new instance of the TurnState class. |
| TurnState(IStorage, IAgentState[]) |
Creates AgentStateSet with default ConversationState and UserState |
Properties
| Conversation | |
| Private | |
| Temp | |
| User |
Methods
| 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) | |