DialogSet Class

Definition

A collection of Dialog objects that can all call each other.

public class DialogSet
type DialogSet = class
Public Class DialogSet
Inheritance
DialogSet

Constructors

DialogSet()

Initializes a new instance of the DialogSet class with null DialogState.

DialogSet(IStatePropertyAccessor<DialogState>)

Initializes a new instance of the DialogSet class.

Properties

TelemetryClient

Gets or sets the IBotTelemetryClient to use for logging.

Methods

Add(Dialog)

Adds a new dialog to the set and returns the set to allow fluent chaining. If the Dialog.Id being added already exists in the set, the dialogs id will be updated to include a suffix which makes it unique. So adding 2 dialogs named "duplicate" to the set would result in the first one having an id of "duplicate" and the second one having an id of "duplicate2".

CreateContextAsync(ITurnContext, CancellationToken)

Creates a DialogContext which can be used to work with the dialogs in the DialogSet.

Find(String)

Searches the current DialogSet for a Dialog by its ID.

GetDialogs()

Gets the Dialogs of the set.

GetVersion()

Gets a unique string which represents the combined versions of all dialogs in this this dialogset.

Applies to