コード例 #1
0
        public static async Task Main(string[] args)
        {
            var(env, configurationRoot, orleansConfig) =
                ConsoleAppConfigurator.BootstrapConfigurationRoot();

            await CreateHostBuilder(args, env, configurationRoot, orleansConfig).Build().RunAsync();
        }
コード例 #2
0
        static async Task <int> Main(string[] args)
        {
            var(env, configurationRoot, orleansConfig) =
                ConsoleAppConfigurator.BootstrapConfigurationRoot();

            return(await CreateHostBuilder(args, env, configurationRoot, orleansConfig));
        }
コード例 #3
0
        static int Main(string[] args)
        {
            Startup = ConsoleAppConfigurator.BootstrapApp();
            var serviceCollection = new ServiceCollection();

            Startup.ConfigureServices(serviceCollection);
            ServiceProvider = serviceCollection.BuildServiceProvider();

            return(RunMainAsync().Result);
        }