Ejemplo n.º 1
0
        private Task <string> SendCommandAsync(HwiCommands?command = null, string[] commandArguments = null, CancellationToken cancellationToken = default)
        {
            List <HwiOption> options = new List <HwiOption>();

            if (!string.IsNullOrEmpty(Password))
            {
                options.Add(HwiOption.Password(Password));
            }
            return(HwiClient.SendCommandAsync(DeviceSelector, options, command, commandArguments, cancellationToken));
        }
Ejemplo n.º 2
0
 private Task<string> SendCommandAsync(HwiCommands? command = null, string[] commandArguments = null, CancellationToken cancellationToken = default)
 {
     return HwiClient.SendCommandAsync(DeviceSelector, null, command, commandArguments, cancellationToken);
 }