示例#1
0
        public override async Task DialogRepromptAsync(ITurnContext turnContext, DialogInstance instance, CancellationToken cancellationToken = default(CancellationToken))
        {
            // Delegate to inner dialog.
            var dialogState = (DialogState)instance.State[PersistedDialogState];
            var innerDc     = new DialogContext(_dialogs, turnContext, dialogState);
            await innerDc.RepromptAsync(cancellationToken).ConfigureAwait(false);

            // Notify component
            await OnDialogRepromptAsync(turnContext, instance, cancellationToken).ConfigureAwait(false);
        }
 protected virtual async Task OnDialogRepromptAsync(DialogContext dc, CancellationToken cancellationToken = default(CancellationToken))
 {
     await dc.RepromptAsync(cancellationToken).ConfigureAwait(false);
 }
示例#3
0
 protected virtual async Task OnDialogRepromptAsync(DialogContext dc)
 {
     await dc.RepromptAsync().ConfigureAwait(false);
 }