Пример #1
0
 public static ReadPasswordConfiguration WithPrompt(this ReadPasswordConfiguration composer, ConsoleString prompt)
 {
     return(new ReadPasswordConfiguration
            (
                prompt: prompt,
                renderAs: composer.RenderAs,
                repeatRender: composer.RepeatRender
            ));
 }
Пример #2
0
 public static ReadPasswordConfiguration WithRender(this ReadPasswordConfiguration composer, char render, bool repeat)
 {
     return(new ReadPasswordConfiguration
            (
                prompt: composer.Prompt,
                renderAs: ConsoleString.FromContent(render.ToString()),
                repeatRender: repeat
            ));
 }
Пример #3
0
 public static ReadPasswordConfiguration WithRender(this ReadPasswordConfiguration composer, ConsoleString render, bool repeat)
 {
     return(new ReadPasswordConfiguration
            (
                prompt: composer.Prompt,
                renderAs: render,
                repeatRender: repeat
            ));
 }
Пример #4
0
 public static ReadPasswordConfiguration WithoutRender(this ReadPasswordConfiguration composer) => composer.WithRender(ConsoleString.Empty, false);
Пример #5
0
 public static ReadPasswordConfiguration WithoutPrompt(this ReadPasswordConfiguration composer) => composer.WithPrompt(ConsoleString.Empty);