public static async Task <int> Main(string[] args)
        {
            if (string.IsNullOrEmpty(s_connectionString) && args.Length > 0)
            {
                s_connectionString = args[0];
            }

            using JobClient jobClient = JobClient.CreateFromConnectionString(s_connectionString);

            var sample = new JobsSample(jobClient);
            await sample.RunSampleAsync().ConfigureAwait(false);

            Console.WriteLine("Done.");
            return(0);
        }
Ejemplo n.º 2
0
        public static int Main(string[] args)
        {
            if (string.IsNullOrEmpty(s_connectionString) && args.Length > 0)
            {
                s_connectionString = args[0];
            }

            JobClient jobClient = JobClient.CreateFromConnectionString(s_connectionString);

            var sample = new JobsSample(jobClient);

            sample.RunSampleAsync().GetAwaiter().GetResult();

            Console.WriteLine("Done.\n");
            return(0);
        }