locked
background uploader and completion group task RRS feed

  • Question

  • Hi,


    I have some question about background uploader.

    when I upload many files using background uploader and completion group, I found two issues.

    please refer to below.


    <issue 1 : Completion Group task does not work.>

    - Test Case 1 :  transfer  600 files.( file size :  108kb)

    - Test Case 2 :

          - Test Case Procedures : 

            1. after create uploader 1 and transfer group, send files.(200 files)

            2. send files at same time(create uploader  2(200 files)).

            3. send files at same time(create uploader  3(200 files)).

    - Result : An InvalidOperation Exception has occurred when the background uploader are finished.


    <issue 2 : Some files will not be sent..>

    - Test Case :  transfer  700 files.( file size :  108kb)

    - Result : Some uploadoperation does not work( i think uploadoperation  are missing)

    I had sent files using reference to the MS samples(background transfer) .

    <--------------

                BackgroundTransferCompletionGroup completionGroup = new    BackgroundTransferCompletionGroup();

                BackgroundTaskBuilder builder = new BackgroundTaskBuilder();
                builder.TaskEntryPoint = "Tasks.CompletionGroupTask";
                builder.SetTrigger(completionGroup.Trigger);

                BackgroundTaskRegistration taskRegistration = builder.Register();

                BackgroundUploader uploader = new BackgroundUploader(completionGroup);

     BackgroundTransferGroup transfer_group = BackgroundTransferGroup.CreateGroup("TestTrasferGroup_" + Count);

                transfer_group.TransferBehavior = BackgroundTransferBehavior.Serialized;
                uploader.TransferGroup = transfer_group;
                foreach(var file in files)
                {
                    UploadOperation upload = uploader.CreateUpload(uri, file);
                    Task<UploadOperation> startTask = upload.StartAsync().AsTask();
                }
                uploader.CompletionGroup.Enable();

    ------------------>

    so, I would like to know about limitations of the background uploader .

    1. Is there the maximun limitations  of upload operation?
    2. Is there possible concorrent transfer (via background uploader)?

    Thank you,

    JS






    • Edited by Junseok Tuesday, February 16, 2016 7:44 AM
    • Moved by CoolDadTx Tuesday, February 16, 2016 2:57 PM UWA related
    Tuesday, February 16, 2016 6:25 AM

Answers