static int Main()

in Hands-on lab/lab-files/src/TollBooth/UploadImages/Program.cs [17:43]


        static int Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("You must pass the Blob Storage connection string as an argument when executing this application.");
                Console.ReadLine();
                return 1;
            }
            else
            {
                BlobStorageConnection = args[0];
            }

            int choice = 1;
            Console.WriteLine("Enter one of the following numbers to indicate what type of image upload you want to perform:");
            Console.WriteLine("\t1 - Upload a handful of test photos");
            Console.WriteLine("\t2 - Upload 1000 photos to test processing at scale");
            int.TryParse(Console.ReadLine(), out choice);

            bool upload1000 = choice == 2;

            UploadImages(upload1000);

            Console.ReadLine();

            return 0;
        }