Пример #1
0
        public static InteractivePrinter CreateSpinnerPrinter(string title, Func <object, string> formatter)
        {
            if (!AllowInteractivePrinting)
            {
                return(new NullPrinter());
            }
            InteractivePrinter printer = new SpinnerPrinter()
            {
                Header    = title,
                Formatter = formatter
            };

            printer.Start(title);

            return(printer);
        }
Пример #2
0
        public static InteractivePrinter CreateSpinnerPrinter(string title, Func<object, string> formatter)
        {
            if (!AllowInteractivePrinting)
                return new NullPrinter();
            InteractivePrinter printer = new SpinnerPrinter()
            {
                Header = title,
                Formatter = formatter
            };

            printer.Start(title);

            return printer;
        }