com.microsoft.bot.builder.classic.dialogs.DialogStack Maven / Gradle / Ivy
package com.microsoft.bot.builder.classic.dialogs;
public interface DialogStack
{
/* ///
/// The dialog frames active on the stack.
///
ReadOnlyList Frames { get; }
///
/// Suspend the current dialog until an external event has been sent to the bot.
///
/// The method to resume when the event has been received.
void Wait(ResumeAfter resume);
///
/// Call a child dialog and add it to the top of the stack.
///
/// The type of result expected from the child dialog.
/// The child dialog.
/// The method to resume when the child dialog has completed.
void Call(IDialog child, ResumeAfter resume);
///
/// Post an internal event to the queue.
///
/// The event to post to the queue.
/// The method to resume when the event has been delivered.
void Post(E @event, ResumeAfter resume);
///
/// Call a child dialog, add it to the top of the stack and post the item to the child dialog.
///
/// The type of result expected from the child dialog.
/// The type of the item posted to child dialog.
/// The child dialog.
/// The method to resume when the child dialog has completed.
/// The item that will be posted to child dialog.
/// A cancellation token.
/// A task representing the Forward operation.
Task Forward(IDialog child, ResumeAfter resume, T item, CancellationToken token);
///
/// Complete the current dialog and return a result to the parent dialog.
///
/// The type of the result dialog.
/// The value of the result.
void Done(R value);
///
/// Fail the current dialog and return an exception to the parent dialog.
///
/// The error.
void Fail(Exception error); */
///
/// Resets the stack.
///
void Reset();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy