public static async Task Main(string[] args) { var(env, configurationRoot, orleansConfig) = ConsoleAppConfigurator.BootstrapConfigurationRoot(); await CreateHostBuilder(args, env, configurationRoot, orleansConfig).Build().RunAsync(); }
static async Task <int> Main(string[] args) { var(env, configurationRoot, orleansConfig) = ConsoleAppConfigurator.BootstrapConfigurationRoot(); return(await CreateHostBuilder(args, env, configurationRoot, orleansConfig)); }
static int Main(string[] args) { Startup = ConsoleAppConfigurator.BootstrapApp(); var serviceCollection = new ServiceCollection(); Startup.ConfigureServices(serviceCollection); ServiceProvider = serviceCollection.BuildServiceProvider(); return(RunMainAsync().Result); }