AskAsync<T>(IAnsiConsole, string, CultureInfo, CancellationToken) Method
Displays a prompt to the user.
public static Task<T> AskAsync<T>(this IAnsiConsole console, string prompt, CultureInfo culture, CancellationToken cancellationToken = default(CancellationToken))
- Namespace
- Spectre
.Console - Containing Type
- Ansi
Console Extensions
Parameters
-
T
- The prompt result type.
Parameters
- IAnsiConsole console
- The console.
- string prompt
- The prompt markup text.
- CultureInfo culture
- Specific CultureInfo to use when converting input.
- CancellationToken cancellationToken
- The token to monitor for cancellation requests.
Returns
-
Task
<T>