Skip to content
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
@dafaithz81

Description

@dafaithz81

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions