Example #1
0
        static public async Task Do(CmdArguments args)
        {
            var client = RegistryManager.CreateFromConnectionString(Settings.Default.ConnectionString);

            if (args.Ids != null)
            {
                await IoTHubHelper.QueryDevicesByIds(client, args.Ids);
            }
            else
            {
                await IoTHubHelper.QueryDevicesByCondition(client, args.QueryCondition ?? "select * from devices");
            }
        }