TurnStateContainer 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.
Holds the conversation-scoped and user-scoped state for the current turn.
public sealed class TurnStateContainer
type TurnStateContainer = class
Public NotInheritable Class TurnStateContainer
- Inheritance
-
TurnStateContainer
Constructors
| Name | Description |
|---|---|
| TurnStateContainer(TurnState, TurnState) |
Initializes a new instance of the TurnStateContainer class. |
Properties
| Name | Description |
|---|---|
| ConversationState |
Gets the conversation-scoped state, shared by all users in the conversation.
Keyed by |
| UserState |
Gets the user-scoped state, private to each user in each conversation.
Keyed by |
Methods
| Name | Description |
|---|---|
| DeleteAsync(CancellationToken) |
Deletes conversation and user state from the backing store and clears in-memory scopes. Scopes remain available for reads/writes afterward, but as empty state. |