protected override void OperateImpl(OperatingContext Context, CancellationToken CancellationToken) { using (var pc = new ProgressController(Progress)) { pc.SetDescription("Подключение по USB..."); using (UsbConnection connection = Context.Usb.Connect(_usbConnectionTimeout, CancellationToken)) { pc.SetDescription(string.Format("Отправка {0} по USB {{0:P0}}", _dataName), Progress); connection.Write(_data, _address, Progress, CancellationToken); } } }