/// <summary> /// Builds a new branching dialog with binary yes/no answers. /// </summary> /// <param name="dialogs"> The dialogs collection. </param> /// <param name="factory"> The factory used for building dialogs. </param> /// <param name="dialogName"> The name of the dialog to create. </param> /// <param name="prompt"> The prompt used for asking a question. </param> /// <param name="positivePath"> The next step in the event of a positive answer. </param> /// <param name="negativePath"> The next step in the event of a negative answer. </param> /// <returns> The <see cref="DialogSet"/>. </returns> public static DialogSet WithBranch( this DialogSet dialogs, IDialogFactory <DialogSet> factory, string dialogName, string prompt, IDialogStep positivePath, IDialogStep negativePath) { return(factory.BuildBranchingDialog(dialogs, dialogName, prompt, positivePath, negativePath)); }