Share via


ActionScope.BeginActionAsync(DialogContext, Int32, CancellationToken) Method

Definition

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

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> BeginActionAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, int offset, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginActionAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
override this.BeginActionAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Protected Overridable Function BeginActionAsync (dc As DialogContext, offset As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)

Parameters

dc
DialogContext

The DialogContext for the current turn of conversation.

offset
Int32

Optional, value returned from the dialog that was called. The type of the value returned is dependent on the child dialog.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A Task representing the asynchronous operation.

Applies to