private bool HandlePrompt(IPositronDialogHandler handler, PromptDialogContext context, IJsDialogCallback callback) { if (!handler.WillHandlePrompt(context)) { return(false); } var task = handler.HandlePrompt(context) .ContinueWith(task2 => { using (callback) { callback.Continue(task2.Result, context.PromptText); } }, TaskContinuationOptions.OnlyOnRanToCompletion); HandleErrors(task, callback); return(true); }
public Task <bool> HandlePrompt(PromptDialogContext context) { throw new NotImplementedException(); }
public bool WillHandlePrompt(PromptDialogContext context) { return(false); }