Dialog.ResumeDialogAsync(DialogContext, DialogReason, Object, CancellationToken) 메서드
정의
자식 대화 상자가이를 완료 하 고 컨트롤을이 대화 상자로 반환 하면 호출 됩니다.Called when a child dialog completed this turn, returning control to this dialog.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> ResumeDialogAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogReason reason, object result = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ResumeDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogReason * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
override this.ResumeDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogReason * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Public Overridable Function ResumeDialogAsync (dc As DialogContext, reason As DialogReason, Optional result As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)
매개 변수
대화의 현재 전환에 대 한 대화 상자 컨텍스트입니다.The dialog context for the current turn of the conversation.
- reason
- DialogReason
대화 상자가 다시 시작 된 이유입니다.Reason why the dialog resumed.
- result
- Object
선택 사항입니다. 호출한 대화 상자에서 반환 된 값입니다.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.
반환
비동기 작업을 나타내는 Task입니다.A Task representing the asynchronous operation.
설명
작업이 성공적으로 완료 되 면이 대화 상자를 처리 한 후에도이 대화 상자가 활성 상태 인지 여부를 나타냅니다.If the task is successful, the result indicates whether this dialog is still active after this dialog turn has been processed.
일반적으로를 호출 하 여 자식 대화 상자를 시작 했습니다 BeginDialogAsync(DialogContext, Object, CancellationToken) .Generally, the child dialog was started with a call to BeginDialogAsync(DialogContext, Object, CancellationToken). 그러나 메서드를 호출 하는 경우 ReplaceDialogAsync(String, Object, CancellationToken) 논리적 자식 대화 상자는 원본과 다를 수 있습니다.However, if the ReplaceDialogAsync(String, Object, CancellationToken) method is called, the logical child dialog may be different than the original.
이 메서드를 재정의 하지 않으면 사용자가 회신할 때 대화 상자가 자동으로 종료 됩니다.If this method is not overridden, the dialog automatically ends when the user replies.