Exemplo n.º 1
0
        static async Task MainAsync(string[] args)
        {
            string scenarioToRun = Program.DefaultQuickstartScenario;

            if (args.Length == 1)
            {
                scenarioToRun = args[0];
            }

            // Read the input parameters, either from command line or environment variables
            //string hostname = CassandraQuickstart.GetEnvironmentVariable("hostname", "<FILL_IN_FROM_AZURE_PORTAL>");
            //string userName = CassandraQuickstart.GetEnvironmentVariable("userName", "<FILL_IN_FROM_AZURE_PORTAL>");
            //string password = CassandraQuickstart.GetEnvironmentVariable("password", "<FILL_IN_FROM_AZURE_PORTAL>");
            string hostname = Program.GetEnvironmentVariable("hostname", "sivethetest-cassandra.cassandra.cosmosdb.azure.com");
            string userName = Program.GetEnvironmentVariable("user", "sivethetest-cassandra");
            string password = Program.GetEnvironmentVariable("password", "Nap6LRrHFAPydUqv6TWDXUXaaHXaw7fb68lsc6TNDq9xC0QlYQsDhiIiA6q0PzvXZ9JJ89FhlrVXqwTA0mcckQ==");

            Console.WriteLine($"Executing scenario: {scenarioToRun}\n");
            ScenarioBase scenario = Program.ConstructScenario(scenarioToRun);
            await scenario.InitializeAsync(hostname, userName, password);

            await scenario.RunScenarioAsync();
        }