Case Class

Definition

Cases of action scope.

public class Case : Microsoft.Bot.Builder.Dialogs.Adaptive.Actions.ActionScope
type Case = class
    inherit ActionScope
Public Class Case
Inherits ActionScope
Inheritance

Constructors

Case(String, IEnumerable<Dialog>)

Initializes a new instance of the Case class.

Fields

OFFSETKEY

Defines the path for the offset key.

(Inherited from ActionScope)

Properties

Actions

Gets or sets the actions to execute.

(Inherited from ActionScope)
Id

Gets or sets id for the dialog.

(Inherited from Dialog)
Source

Gets the information of the cref="SourceRange"/>.

(Inherited from Dialog)
TelemetryClient

Gets or sets the IBotTelemetryClient to use for logging.

(Inherited from Dialog)
Value

Gets or sets constant to be compared against condition.

Methods

BeginActionAsync(DialogContext, Int32, CancellationToken)

Starts a new dialog and pushes it onto the dialog stack.

(Inherited from ActionScope)
BeginDialogAsync(DialogContext, Object, CancellationToken)

Called when the dialog is started and pushed onto the dialog stack.

(Inherited from ActionScope)
ContinueDialogAsync(DialogContext, CancellationToken)

Called when the dialog is continued, where it is the active dialog and the user replies with a new activity.

(Inherited from ActionScope)
EndDialogAsync(ITurnContext, DialogInstance, DialogReason, CancellationToken)

Called when the dialog is ending.

(Inherited from Dialog)
GetDependencies()

Enumerates child dialog dependencies so they can be added to the containers dialog set.

(Inherited from ActionScope)
GetVersion()

Gets a unique string which represents the version of this dialog. If the version changes between turns the dialog system will emit a DialogChanged event.

(Inherited from ActionScope)
OnActionScopeResultAsync(DialogContext, ActionScopeResult, CancellationToken)

Called when returning control to this dialog with an ActionScopeResult.

(Inherited from ActionScope)
OnBreakLoopAsync(DialogContext, ActionScopeResult, CancellationToken)

Called when returning control to this dialog with an ActionScopeResult with the property ActionCommand set to BreakLoop.

(Inherited from ActionScope)
OnComputeId()

Builds the compute Id for the dialog.

(Inherited from ActionScope)
OnContinueLoopAsync(DialogContext, ActionScopeResult, CancellationToken)

Called when returning control to this dialog with an ActionScopeResult with the property ActionCommand set to ContinueLoop.

(Inherited from ActionScope)
OnDialogEventAsync(DialogContext, DialogEvent, CancellationToken)

Called when an event has been raised, using DialogContext.emitEvent(), by either the current dialog or a dialog that the current dialog started.

(Inherited from Dialog)
OnEndOfActionsAsync(DialogContext, Object, CancellationToken)

Called when the dialog's action ends.

(Inherited from ActionScope)
OnGotoActionAsync(DialogContext, ActionScopeResult, CancellationToken)

Called when returning control to this dialog with an ActionScopeResult with the property ActionCommand set to GoToAction.

(Inherited from ActionScope)
OnNextActionAsync(DialogContext, Object, CancellationToken)

Called when the dialog continues to the next action.

(Inherited from ActionScope)
OnPostBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

Called after an event was bubbled to all parents and wasn't handled.

(Inherited from Dialog)
OnPreBubbleEventAsync(DialogContext, DialogEvent, CancellationToken)

Called before an event is bubbled to its parent.

(Inherited from Dialog)
RegisterSourceLocation(String, Int32)

Registers a cref="SourceRange"/> in the provided location.

(Inherited from Dialog)
RepromptDialogAsync(ITurnContext, DialogInstance, CancellationToken)

Called when the dialog should re-prompt the user for input.

(Inherited from Dialog)
ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken)

Called when a child dialog completed its turn, returning control to this dialog.

(Inherited from ActionScope)

Extension Methods

RunAsync(Dialog, ITurnContext, IStatePropertyAccessor<DialogState>, CancellationToken)

Creates a dialog stack and starts a dialog, pushing it onto the stack.

Applies to