@@ -35,48 +35,48 @@ public static async Task Main(string[] args)
3535 ( ) => "localhost" ,
3636 description : "Use single endpoint (e.g. --single localhost)" ) ;
3737
38- var multiOption = new Option < List < string > > (
39- "--multi" ,
40- description : "Use multiple endpoints (e.g. --multi localhost:6667 localhost:6668)" )
41- {
42- AllowMultipleArgumentsPerToken = true
43- } ;
38+ var multiOption = new Option < List < string > > (
39+ "--multi" ,
40+ description : "Use multiple endpoints (e.g. --multi localhost:6667 localhost:6668)" )
41+ {
42+ AllowMultipleArgumentsPerToken = true
43+ } ;
4444
45- var rootCommand = new RootCommand
45+ var rootCommand = new RootCommand
4646 {
4747 singleOption ,
4848 multiOption
4949 } ;
5050
51- rootCommand . SetHandler ( async ( string single , List < string > multi ) =>
52- {
53- var utilsTest = new UtilsTest ( ) ;
54- utilsTest . TestParseEndPoint ( ) ;
51+ rootCommand . SetHandler ( async ( string single , List < string > multi ) =>
52+ {
53+ var utilsTest = new UtilsTest ( ) ;
54+ utilsTest . TestParseEndPoint ( ) ;
5555
56- SessionPoolTest sessionPoolTest ;
56+ SessionPoolTest sessionPoolTest ;
5757
58- if ( ! string . IsNullOrEmpty ( single ) && ( multi == null || multi . Count == 0 ) )
59- {
60- sessionPoolTest = new SessionPoolTest ( single ) ;
61- }
62- else if ( multi != null && multi . Count != 0 )
63- {
64- sessionPoolTest = new SessionPoolTest ( multi ) ;
65- }
66- else
67- {
68- Console . WriteLine ( "Please specify either --single or --multi endpoints." ) ;
69- return ;
70- }
58+ if ( ! string . IsNullOrEmpty ( single ) && ( multi == null || multi . Count == 0 ) )
59+ {
60+ sessionPoolTest = new SessionPoolTest ( single ) ;
61+ }
62+ else if ( multi != null && multi . Count != 0 )
63+ {
64+ sessionPoolTest = new SessionPoolTest ( multi ) ;
65+ }
66+ else
67+ {
68+ Console . WriteLine ( "Please specify either --single or --multi endpoints." ) ;
69+ return ;
70+ }
7171
72- await sessionPoolTest . Test ( ) ;
72+ await sessionPoolTest . Test ( ) ;
7373
74- var tableSessionPoolTest = new TableSessionPoolTest ( sessionPoolTest ) ;
75- await tableSessionPoolTest . Test ( ) ;
74+ var tableSessionPoolTest = new TableSessionPoolTest ( sessionPoolTest ) ;
75+ await tableSessionPoolTest . Test ( ) ;
7676
77- } , singleOption , multiOption ) ;
77+ } , singleOption , multiOption ) ;
7878
79- await rootCommand . InvokeAsync ( args ) ;
79+ await rootCommand . InvokeAsync ( args ) ;
8080 }
8181
8282 public static void OpenDebugMode ( this SessionPool session )
0 commit comments