public async Task ChangeDataRateAsync(ITransferJob job, CancellationToken token)
        {
            if (job.IsDataRateChangeSupported)
            {
                Console2.WriteLine("Changing the transfer data rate...");
                await job.ChangeDataRateAsync(0, 10, token).ConfigureAwait(false);

                Console2.WriteLine("Changed the transfer data rate.");
            }
        }
Exemplo n.º 2
0
            private static async Task ChangeDataRateAsync(ITransferJob transferJob, CancellationToken cancellationToken)
            {
                if (transferJob.IsDataRateChangeSupported)
                {
                    Console2.WriteDebugLine("Changing the transfer data rate...");
                    await transferJob.ChangeDataRateAsync(0, 10, cancellationToken).ConfigureAwait(false);

                    Console2.WriteDebugLine("Changed the transfer data rate.");
                }
            }