Exemplo n.º 1
0
        public override async Task <bool> ReadLineAsync(string caption, Func <bool?, string, string> callback)
        {
            var userInput    = string.Empty;
            var dialogResult = true;

            try
            {
                userInput = await _inputHelper.ReadLineAsync(caption);
            }
            catch (Exception)
            {
                dialogResult = false;
            }

            callback?.Invoke(dialogResult, userInput);
            return(true);
        }