@@ -49,43 +49,34 @@ internal class Program
4949
5050 private static async Task Main ( string [ ] args )
5151 {
52- var hostConfig = new J4JHostConfiguration ( AppEnvironment . Console )
53- . ApplicationName ( "GeoProcessor" )
54- . Publisher ( "J4JSoftware" )
55- . AddApplicationConfigurationFile ( "appConfig.json" )
56- . AddUserConfigurationFile ( "userConfig.json" )
57- . AddConfigurationInitializers ( SetupConfiguration )
58- . LoggerInitializer ( SetupLogging )
59- . FilePathTrimmer ( FilePathTrimmer )
60- . AddDependencyInjectionInitializers ( SetupDependencyInjection )
61- . AddServicesInitializers ( SetupServices ) ;
52+ var hostConfig = new J4JHostConfiguration ( AppEnvironment . Console )
53+ . ApplicationName ( "GeoProcessor" )
54+ . Publisher ( "J4JSoftware" )
55+ . AddApplicationConfigurationFile ( "appConfig.json" )
56+ . AddUserConfigurationFile ( "userConfig.json" )
57+ . AddConfigurationInitializers ( SetupConfiguration )
58+ . LoggerInitializer ( SetupLogging )
59+ . FilePathTrimmer ( FilePathTrimmer )
60+ . AddDependencyInjectionInitializers ( SetupDependencyInjection )
61+ . AddServicesInitializers ( SetupServices ) ;
6262
6363 hostConfig . AddCommandLineProcessing ( CommandLineOperatingSystems . Windows )
64- . OptionsInitializer ( SetupOptions ) ;
64+ . OptionsInitializer ( SetupOptions ) ;
6565
6666 _buildLogger = hostConfig . Logger ;
6767
6868 if ( hostConfig . MissingRequirements != J4JHostRequirements . AllMet )
6969 {
70- Console . WriteLine ( $ "Could not create IHost. The following requirements were not met: { hostConfig . MissingRequirements . ToText ( ) } ") ;
70+ Console . WriteLine (
71+ $ "Could not create IHost. The following requirements were not met: { hostConfig . MissingRequirements . ToText ( ) } " ) ;
7172 Environment . ExitCode = - 1 ;
7273
7374 return ;
7475 }
7576
76- //var builder = hostConfig.CreateHostBuilder();
77-
78- //if( builder == null )
79- //{
80- // Console.WriteLine("Failed to create host builder.");
81- // Environment.ExitCode = -1;
82-
83- // return;
84- //}
85-
8677 Host = hostConfig . Build ( ) ;
8778
88- if ( Host == null )
79+ if ( Host == null )
8980 {
9081 Console . WriteLine ( "Failed to build host" ) ;
9182 Environment . ExitCode = - 1 ;
0 commit comments