This repository was archived by the owner on Dec 31, 2022. It is now read-only.
This repository was archived by the owner on Dec 31, 2022. It is now read-only.
example for push/pull progression #171
Open
Description
hi,
could anyone help me to understand how the progress works ?
the pull/push methods can receive a IProgress object.
this object has a report function, but it wants an integer parameter.
i want something like this:
`Dim tProgress As IProgress(Of Integer) = Nothing
Dim tActProgress As Integer = 0
Using tService As SyncService = New SyncService(New AdbSocket(New IPEndPoint(IPAddress.Loopback, AdbClient.AdbServerPort)), tWorkerArgs.QuestDevice)
Using tStream As Stream = File.OpenWrite(tAPKDestFullPath)
tService.Pull(tAPKSourceFullPath, tStream, tProgress, CancellationToken.None)
While tActProgress < 100
tProgress.Report(tActProgress)
SimpleWait(1)
End While
End Using
End Using`
would be nice if anyone could help me
Metadata
Metadata
Assignees
Labels
No labels