Language

TurnStateContainer Class

Definition

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 Conversation.Id.

UserState

Gets the user-scoped state, private to each user in each conversation. Keyed by Conversation.Id + From.Id. Returns null when the activity has no From field.

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.

Applies to