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

            using RegistryManager registryManager = RegistryManager.CreateFromConnectionString(s_connectionString);

            var sample = new EdgeDeploymentSample(registryManager);
            await sample.RunSampleAsync().ConfigureAwait(false);

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

            var registryManager = RegistryManager.CreateFromConnectionString(s_connectionString);

            var sample = new EdgeDeploymentSample(registryManager);

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

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