コード例 #1
0
 public Task ExecuteDeviceAsync(string deviceId,
                                DeviceExecuteModel model,
                                CancellationToken cancellationToken = default)
 => _client.PostAsJsonAsync($"devices/{deviceId}/execute", model, cancellationToken);
コード例 #2
0
 public Task ExecuteDeviceAsync(string deviceId, DeviceExecuteModel model, CancellationToken cancellationToken = default)
 => ExecuteDeviceAsync(deviceId, new DeviceExecuteModel[] { model }, cancellationToken);