public static void Main(string[] args)
        {
            CommandLineApplication commandLineApplication = new CommandLineApplication(false);

            commandLineApplication.OnExecute(() =>
            {
                RunLambda().ConfigureAwait(true).GetAwaiter().GetResult();
                return(0);
            });

            commandLineApplication.Command("seed", command =>
            {
                CommandOption connectionString = command.Option("-d", "TLS/RPT Connection String", CommandOptionType.SingleValue);
                CommandOption queueUrl         = command.Option("-q", "Queue Url", CommandOptionType.SingleValue);

                command.OnExecute(() =>
                {
                    ISeeder seeder = SeederFactory.Create(connectionString.Value(), queueUrl.Value());

                    seeder.SeedDomainCreated().GetAwaiter().GetResult();

                    return(0);
                });
            });

            commandLineApplication.Execute(args);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var grid = new SeederFactory().Create(SeederEnum.Random).Seed();

            var game = new GameOfLineEngine(
                new LiveNeighbourCounter(),
                new RulesEngine(),
                new TabularConsoleOutput(),
                new AutomatedLooper());

            game.Process(grid);
        }