public static void ConfirmThreeButtons(this IUserInteraction userInteraction, string message, Action <ConfirmThreeButtonsResponse> answer, string title = null, string positive = "Yes", string negative = "No", string neutral = "Maybe") { var task = userInteraction.ConfirmThreeButtonsAsync( message, title, positive, negative, neutral); if (answer != null) { task.ContinueWith((closureTask, closureAction) => ((Action <ConfirmThreeButtonsResponse>)closureAction)(closureTask.Result), answer, TaskContinuationOptions.OnlyOnRanToCompletion); } }