예제 #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);