@@ -13,7 +13,10 @@ public static class ConsoleAppEngineHostBuilderExtensions
1313 const string HelpCommand = "help" ;
1414 const string VersionCommand = "version" ;
1515
16- public static IHostBuilder UseConsoleAppEngine ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
16+ /// <summary>
17+ /// Setup multiple ConsoleApp that are searched from all assemblies.
18+ /// </summary>
19+ public static IHostBuilder UseConsoleAppFramework ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
1720 {
1821 IHostBuilder ConfigureEmptyService ( )
1922 {
@@ -105,12 +108,18 @@ IHostBuilder ConfigureEmptyService()
105108 return hostBuilder . UseConsoleLifetime ( ) ;
106109 }
107110
108- public static Task RunConsoleAppEngineAsync ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
111+ /// <summary>
112+ /// Run multiple ConsoleApp that are searched from all assemblies.
113+ /// </summary>
114+ public static Task RunConsoleAppFrameworkAsync ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
109115 {
110- return UseConsoleAppEngine ( hostBuilder , args , interceptor ) . Build ( ) . RunAsync ( ) ;
116+ return UseConsoleAppFramework ( hostBuilder , args , interceptor ) . Build ( ) . RunAsync ( ) ;
111117 }
112118
113- public static IHostBuilder UseConsoleAppEngine < T > ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
119+ /// <summary>
120+ /// Setup a single ConsoleApp type that is targeted by type argument.
121+ /// </summary>
122+ public static IHostBuilder UseConsoleAppFramework < T > ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
114123 where T : ConsoleAppBase
115124 {
116125 IHostBuilder ConfigureEmptyService ( )
@@ -200,10 +209,13 @@ IHostBuilder ConfigureEmptyService()
200209 return hostBuilder . UseConsoleLifetime ( ) ;
201210 }
202211
203- public static Task RunConsoleAppEngineAsync < T > ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
212+ /// <summary>
213+ /// Run a single ConsoleApp type that is targeted by type argument.
214+ /// </summary>
215+ public static Task RunConsoleAppFrameworkAsync < T > ( this IHostBuilder hostBuilder , string [ ] args , IConsoleAppInterceptor ? interceptor = null )
204216 where T : ConsoleAppBase
205217 {
206- return UseConsoleAppEngine < T > ( hostBuilder , args , interceptor ) . Build ( ) . RunAsync ( ) ;
218+ return UseConsoleAppFramework < T > ( hostBuilder , args , interceptor ) . Build ( ) . RunAsync ( ) ;
207219 }
208220
209221 static bool TrimEquals ( string arg , string command )
0 commit comments